16

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.

Kara
  • 6,115
  • 16
  • 50
  • 57
Thomas Schultz
  • 2,446
  • 3
  • 25
  • 36

5 Answers5

38

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:

zcoop98
  • 2,590
  • 1
  • 18
  • 31
Ian Burnette
  • 1,020
  • 10
  • 16
10

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".

Alex Martelli
  • 854,459
  • 170
  • 1,222
  • 1,395
9
  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

Manichandra
  • 185
  • 1
  • 3
  • 10
4

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

Mauricio Morales
  • 988
  • 1
  • 9
  • 16
2

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

igorsantos07
  • 4,456
  • 5
  • 43
  • 62