﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20984	XMLRPC: wp.uploadFile missing base64_decode	fishc4ke		"Uploading images via wp.uploadFile results in a broken image as the base64 bits are not decoded again.

Looking at the code, the file is written to disk by the function wp_upload_bits in functions.php.

A fix would be to alter line 1615 of functions.php:

{{{

@fwrite( $ifp, $bits );
}}}


to


{{{
@fwrite( $ifp, base64_decode($bits) );
}}}


However, I have not tested to see if this would break any other functionality.

"	defect (bug)	closed	normal		XML-RPC	3.4	normal	invalid		maxcutler
