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[1] – 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.

Read the official notes;

,

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

2 Responses to “AIR files downloading as .zips?”

  1. Luveen 5th May, 2009 at 9:20 pm # Reply

    Thanks so much for this post! I’d developed an file viewer AIR app for download from my company’s web app, and it strangely kept renaming the file to .zip. This really makes things much easier to solve. Thanks once again!

  2. Giulio 31st October, 2010 at 10:10 am # Reply

    Many thanks for your advice. Is very useful!

Leave a Reply

Note: This post is over 3 years old. You may want to check later in this blog to see if there is new information relevant to your comment.