I have read the online documentation that I could find relating to uploading files to Google's Cloud Storage service (specifically the JSON api): https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload
我已经阅读了有关将文件上传到Google的云存储服务(特别是JSON API)的在线文档:https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload
And on that page it references another page/doc to "See the API reference for each method's list of accepted MIME types and size limits for uploaded files." Which links to here: https://cloud.google.com/storage/docs/json_api/v1/
在该页面上,它引用另一个页面/文档“查看每个方法的已接受MIME类型列表的API参考和上传文件的大小限制。”链接到此处:https://cloud.google.com/storage/docs/json_api/v1/
With nothing I could find on the matter of MIME/content type.
在MIME /内容类型问题上我找不到任何东西。
Does anybody know what exactly is allowed to be set as content type on GCS?
有人知道GCS上允许设置为内容类型的确切内容吗?
1 个解决方案
#1
You can set any MIME type that conforms to the specification: http://www.w3.org/Protocols/rfc1341/4_Content-Type.html
您可以设置任何符合规范的MIME类型:http://www.w3.org/Protocols/rfc1341/4_Content-Type.html
#1
You can set any MIME type that conforms to the specification: http://www.w3.org/Protocols/rfc1341/4_Content-Type.html
您可以设置任何符合规范的MIME类型:http://www.w3.org/Protocols/rfc1341/4_Content-Type.html