post to /wp-json/wp/v2/media
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 d29yZHByZXNzOndvcmRwcmVzcw==" \
--header "content-type: image/png" \
--data-binary "@/home/web/tmp.png" \
--location
Also in JavaScript:
- javascript turn string into array
- user agent chrome
- js cound how many clicks
- js or operator
- javascript variable object
- reverse every word in a string javascript
- json web token npm
- js check if obj all false
- create array javascript fill
- javascript urlencode json
- javascript form submit on button click check if required fields not empty
- javascript explode space
- arrow function component react shortcut vscode
- ec2 yum nodejs
- loop in javascript
- await async sleep
- route pass props to component
- javascript Inserting values in between an array
- find all input elements in a form
- get current url in jsp page
- capitalize first letter of each word javascript
- regex optional whitespace characters
- prevent double tap in react native
- advanced data manipulation javascript