AIR files downloading as .zips?
Well, here’s a mercifully easy to solve problem with Adobe AIR.
A couple of people pointed out that Internet Explorer was saving my .air download files as .zip format - even going so far as to change the filename extension to .zip. (Firefox is fine, and doesn’t do this.) AIR packages are based on the Zip format, so the file contents itself aren’t actually being changed - but when the end user recieves the file, this is going to change the application that handles the file on their local machine.
In the case of Windows, the file explorer will extract the archive, and the user will be looking at a bunch of useless folders and compiled source files. Without the .air extension, or the .air resource forks, then the installation process for your shiny new AIR App. just isn’t going to start.
Given that .air files are based on zip archives, it isn’t too much of a mystery to see where the .zip associations come from, but I never thought that IE would go sofar as to rename files for you!
Well, the problem here is server mime-types - file associations that the webserver uses to decide how to deliver content. I’ve encountered a similar issue with .flv (Flash Video) files before - and here we are again. What you need to do is completely server-side, and get the mime-type “
application/vnd.adobe.air-application-installer-package+zip” associated with .air files.