Add media with WP-Rest-API v2 II
I suspect based on an answer at StackOverflow that something like this would work: base64credentials=”…… ” curl –request POST \ –url “http://www.yoursite.com/wp-json/wp/v2/media” \ –header “cache-control: no-cache” \ –header “content-disposition: attachment; filename=tmp” \ –header “authorization: Basic $base64credentials” \ –header “content-type: image/png” \ –data-binary “@/home/web/tmp.png” \ –location This should use tmp.png to create and upload a brand … Read more