Incorrect mime for iWorks documents

Archived from the Transloadit support forum. Originally posted on November 28, 2013; details may be outdated, see our docs for current behavior. Original thread

I have an assembly that restricts based on mime type. The browser File object correctly identifies Pages and Numbers documents as application/x-iwork-pages-sffpages and application/x-iwork-numbers-sffnumbers. However, the mime type check in the upload assembly fails because it sees the mime of these files as application/zip. I want to allow this assembly to process iWork files, but not generic zip files. I’ve attached a copy of the parsed JSON response from a failed Pages upload.

Hey Cailey,

thank you for the report.

A fix for this is on the way and should be live within 25 minutes.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hi Tim,

Thanks for the quick fix. Pages and Numbers documents are working correctly. However, I just found that Keynote files are not – they are still returning as application/zip instead of the correct application/x-iwork-keynote-sffkey

Hey Cayley,

alright thank you. A fix is on the way and it should be available in 30 minutes.

Thanks again for reporting this.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos