问题
I would like to know if "Content-transfer-encoding: BASE64" used inside multipart HTTP POST request body is supported by BOX.
The problem I have is that I generated the following body:
-------boundary
Content-Disposition: form-data; name="filename"; filename="82b.gif"
Content-Type: image/gif
Content-Transfer-Encoding: BASE64
$base64_encoded_binary_file_content
-------boundary
Content-Disposition: form-data; name="parent_id"
123456789
-------boundary--
and sent the http request to https://upload.box.com/api/2.0/files/content.
The file can be created there, but it is not same as the original gif file. it is actually a text file whose content is a string of base64-encoded original gif file.
any suggestion will be very helpful.
Thank you.
回答1:
We're looking to add support for Base64 encoding of files in the future, but do not currently support it.
来源:https://stackoverflow.com/questions/15910405/content-transfer-encoding-base64-box-api