Content-transfer-encoding: BASE64 BOX-API

北城余情 提交于 2019-12-11 05:32:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!