This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Not a bug
FS#2878 XML RPC putAttachment does not base64_decode
Backend
2013-11-08inflames
The specification of putAttachment (https://www.dokuwiki.org/devel:xmlrpc#wikiputattachment) states that the user should base64 encode the attachment.
In my case, I was not able to upload any attachment using this API until I patched the file inc/RemoteAPICore.php to decode the file sent before saving it.
Starting a the line 476, the code now looks like :
// save temporary file
@unlink($ftmp);
$file = base64_decode($file);
io_saveFile($ftmp, $file);
Instead of just :
// save temporary file
@unlink($ftmp);
io_saveFile($ftmp, $file);
Can someone told me if this fix is really necessary or if it should work without it? If it is needed, it would be nice to have it integrated in next release :-)