Fix upload of base64 encoded files.

Fix issue #69