Apple iWork Mime 类型

发布于 2024-08-05 12:30:22 字数 78 浏览 7 评论 0原文

我想知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

往日 2024-08-12 12:30:22

我最近需要这个来工作,最终只是上传了一些文件并查询了 mimetypes。我发现以下内容:

  • keynote: application/x-iwork-keynote-sffkeypages
  • : application/x-iwork-pages-sffpagesnumbers
  • :application/x-iwork-numbers-sffnumbers

2021更新

请注意,这个答案现在已经过时了,并且以下内容类型已获得 IANA 批准:

I recently needed this for work and ended up just uploading some files and querying the mimetypes. I found the following:

  • keynote: application/x-iwork-keynote-sffkey
  • pages: application/x-iwork-pages-sffpages
  • numbers: application/x-iwork-numbers-sffnumbers

2021 Update

Please note that this answer is now outdated and the following content types have been approved by IANA:

断肠人 2024-08-12 12:30:22

看起来 Apple 并不太在意,因为安装 iWork 不会将任何 mime 类型信息添加到任何系统 mime 类型信息代表(在 /etc/cups 和 /etc/apache2 中),在 iWork 文件上“获取信息”显示没有 mime-type 等。我发现的唯一提示是在 Page 的 info.plist 中(在线副本 此处)其中提到:

            <key>public.filename-extension</key>
            <array>
                <string>pages</string>
            </array>
            <key>public.mime-type</key>
            <array>
                <string>application/x-iwork-pages-sffpages</string>
            </array>

文件扩展名“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:

            <key>public.filename-extension</key>
            <array>
                <string>pages</string>
            </array>
            <key>public.mime-type</key>
            <array>
                <string>application/x-iwork-pages-sffpages</string>
            </array>

and a similar one for filename-extension "template", with "-sfftemplate" as the suffix instead of "-sffpages".

躲猫猫 2024-08-12 12:30:22
  application/vnd.apple.keynote
  application/vnd.apple.pages
  application/vnd.apple.numbers

刚刚获得 IANA 批准。您可以在下面的链接中找到该列表。
https://www.iana.org/assignments/media-types/media -types.xhtml

您可以使用 mime-db https://github.com/jshttp/mime-db 来验证使用 JavaScript

  application/vnd.apple.keynote
  application/vnd.apple.pages
  application/vnd.apple.numbers

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

三人与歌 2024-08-12 12:30:22

此 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

命硬 2024-08-12 12:30:22

实际上,这些文件都是经过屏蔽的 zip 文件。因此,某些系统可能会将其 mimetype 简单地表示为 application/zip

Actually, those files are all a masked zipfile. So, some systems might indicate their mimetype simply as application/zip.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文