[wp-trac] [WordPress Trac] #10538: XMLRPC: File Upload missing Base64 Decode

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 3 20:04:43 UTC 2009


#10538: XMLRPC: File Upload missing Base64 Decode
--------------------------+-------------------------------------------------
 Reporter:  amatheson     |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10538>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list