[wp-trac] [WordPress Trac] #20984: XMLRPC: wp.uploadFile missing base64_decode

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 15 23:06:40 UTC 2012


#20984: XMLRPC: wp.uploadFile missing base64_decode
--------------------------+------------------------------
 Reporter:  fishc4ke      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by fishc4ke):

 The [http://codex.wordpress.org/XML-RPC_WordPress_API/Media#wp.uploadFile
 codex page] states that bits' needs to be a base64-encoded, so I am simply
 opening the file and base64-encoding its contents (via Python 2.7.3)
 before uploading.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20984#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list