-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for create media #14
Comments
I've been struggling with the same; I've managed to get the filename to show up in the wordpress media library but there is no data stored with it.
Any help from the creators would be nice. |
Hi @droustchev do you think you can help us? |
Hi @AjayAjaal @JonhNathan987456, Thanks for your feedback. Unfortunately I'm not able to provide support for these issues at the moment. I'm not sure if @droustchev would have time either. At the time that we wrote this wrapper, the JSON API was a plugin for Wordpress, and we only supported Basic Auth for authentication. Since version 4.7, the plugin was added to core Wordpress, and I don't think Basic Auth works any more. I believe we need to update this lib to work for 4.7, and for that I would need to also support a different form of authentication. In short, I'm not sure it makes sense for us to troubleshoot these issues until that underlying problem is fixed, which may take some time. |
@AjayAjaal, I tried uploading a file via curl -v -u {WP_USER}:{WP_PASSWORD} \
-H "Content-Disposition: attachment; filename=test.jpg" \
-d {BASE64_ENCODED_FILE} \
-X POST http://{WP_HOST}/wp-json/wp/v2/media |
#17 can help you! |
@happyraul any news? |
I'll block some time next week to work on this library. |
Hi!
Can you give me some example for create media, please ?
I try but not success :(.
The text was updated successfully, but these errors were encountered: