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