gpt4 book ai didi

csv - 我应该为 CSV 使用什么 MIME 类型?

转载 作者:行者123 更新时间:2023-12-02 07:02:27 25 4
gpt4 key购买 nike

我见过使用 application/csv 以及 text/csv

有什么区别吗?只要请求与可用的内容匹配,这是否重要?它们可以互换吗?

最佳答案

RFC 7111

有一个RFC其中覆盖了它并表示使用 text/csv

此 RFC 更新了 RFC 4180。


Excel

最近我发现了 Excel application/vnd.ms-excel 的显式 mimetype。注册号为IANA 96年。请注意人们对受发件人摆布以及您的机器遭到侵犯的担忧。

Media Type: application/vnd.ms-excel

Name Microsoft Excel (tm)

Required parameters: None

Optional parameters: name

Encoding considerations: base64 preferred

Security considerations: As with most application types this data isintended for interpretation by a program that understands the data onthe recipient's system. Recipients need to understand that they are atthe "mercy" of the sender, when receiving this type of data, sincedata will be executed on their system, and the security of theirmachines can be violated.

OID { org-id ms-files(4) ms-excel (3) }

Object type spreadsheet

Comments This Media Type/OID is used to identify MicrosoftExcel generically (i.e., independent of version, subtype, or platform format).

我不知道允许供应商扩展。查看this answer了解更多 - 谢谢starbeamrainbowlabs供引用。

关于csv - 我应该为 CSV 使用什么 MIME 类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7076042/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com