Apple iWork Mime 类型
我想知道 iWork 页面的 mime 类型是什么? iWork 套件中其他软件的 mime 类型是什么?我在网上查了一下,没有看到任何地方。
I was wondering what the mime type for iWork's Pages is? And also what the mime type is for the rest of the software in the iWork suite? I looked around online and I didn't see it anywhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我最近需要这个来工作,最终只是上传了一些文件并查询了 mimetypes。我发现以下内容:
2021更新
请注意,这个答案现在已经过时了,并且以下内容类型已获得 IANA 批准:
I recently needed this for work and ended up just uploading some files and querying the mimetypes. I found the following:
2021 Update
Please note that this answer is now outdated and the following content types have been approved by IANA:
看起来 Apple 并不太在意,因为安装 iWork 不会将任何 mime 类型信息添加到任何系统 mime 类型信息代表(在 /etc/cups 和 /etc/apache2 中),在 iWork 文件上“获取信息”显示没有 mime-type 等。我发现的唯一提示是在 Page 的 info.plist 中(在线副本 此处)其中提到:
文件扩展名“template”类似,以“-sfftemplate”作为后缀而不是“-sffpages”。
Looks like Apple doesn't much care, since installing iWork does not add any mime type information to any of its system mime-type info reps (in /etc/cups and /etc/apache2), "Get Info" on an iWork file shows no mime-type, etc. The only hint I've found is in Page's info.plist (a copy's online here) which mentions:
and a similar one for filename-extension "template", with "-sfftemplate" as the suffix instead of "-sffpages".
刚刚获得 IANA 批准。您可以在下面的链接中找到该列表。
https://www.iana.org/assignments/media-types/media -types.xhtml。
您可以使用 mime-db https://github.com/jshttp/mime-db 来验证使用 JavaScript
Just got it approved with IANA. You will find the list at the below link.
https://www.iana.org/assignments/media-types/media-types.xhtml.
You can use mime-db https://github.com/jshttp/mime-db to validate using javascript
此 URL 显示了一些其他类型,以防新读者需要:
Apache Jira 问题 TIKA-588
application/vnd.apple.keynote、application/vnd.apple.pages、application/vnd.apple.numbers
This URL shows some other types in case new readers need it:
Apache Jira Issue TIKA-588
application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers
实际上,这些文件都是经过屏蔽的 zip 文件。因此,某些系统可能会将其 mimetype 简单地表示为
application/zip
。Actually, those files are all a masked zipfile. So, some systems might indicate their mimetype simply as
application/zip
.