XMLRPC: File Upload missing Base64 Decode
|Reported by:||amatheson||Owned by:||josephscott|
I was using the upload XML RPC function to mass import images from a previous blog and found that all the files uploaded were being stored incorrectly. Looking into it, I discovered that although the documentation says that the 'bits' argument is a base64 value (http://codex.wordpress.org/XML-RPC_wp#wp.uploadFile) but that the mw_newMediaObject() function does not decode the 'bits' value. I've attached a diff that I've produced against the 2.8.3 version of xmlrpc.php.
Change History (5)
8 years ago
- Cc amatheson@… added
- Component changed from General to XML-RPC
- Owner set to josephscott