3 comments on “WordPress: Posting images using XML-RPC”
The above code is not working with the new wordpress version. I am trying to upload a music album cover via xmlrpc, it is showing nothing. Can you please update the above code?
I've tested it, code still works perfectly to upload images on WordPress 4.7. The print_r line was not giving back much information though, because the "return $result" line was missing.
Hi, I can upload the file to WP through RPC. I upload images. But how can I call the WP image process to work? Because I need this process to do the cropping/resizing uploaded images too. Right now the uploaded image only like a text file contains base64 string in a filename of .jpg.
The above code is not working with the new wordpress version. I am trying to upload a music album cover via xmlrpc, it is showing nothing. Can you please update the above code?
I've tested it, code still works perfectly to upload images on WordPress 4.7. The print_r line was not giving back much information though, because the "return $result" line was missing.
Hi, I can upload the file to WP through RPC. I upload images. But how can I call the WP image process to work? Because I need this process to do the cropping/resizing uploaded images too. Right now the uploaded image only like a text file contains base64 string in a filename of .jpg.