search
Innovative Web Design and Application Development
PawPrint.net

PawPrint.net News

December 16th, 2009
December 16th, 2009

Air Files downloading as ZIP

Fix server side mime type to solve this annoying problem

As I begin my foray into the Adobe Air development arena I hit a strange snag for some people trying to download .air files - Windows was silently changing them to .zip during download - breaking the entire process! Here is how to fix it.

The problem seems to be caused by a missing server-side mime type to show the client how to deal with the .air file. Since .air files are basically just zips the browser is looking at the file headers and drawing a somewhat logical conclusion.

To fix the problem the web server needs to know the correct .air mime type - Since I only use Apache on linux here is how to deal with it there:

edit /etc/mime.types (or wherever yours is) and add the following

application/vnd.adobe.air-application-installer-package+zip  air


the ŽairŽ at the end is the extension.

After that reload/restart Apache and you should be good to go. Later on moving to a badge installer is probably the best and more user friendly solution - but to provide manual downloads this is an essential step.


Share this:
No Comments
i
You must login or register to post comments Login/Signup
RSS feed Feed Description
Subscribe to the complete PawPrint.net News RSS news feedAll News RSS feed Complete RSS feed
Subscribe to the PawPrint.net News RSS news feed for this category onlyTechnobloggle RSS feed for: Technobloggle
A Rich Site Summary (RSS) feed is an xml data file that provides a summary of the information contained here. It is not designed to be viewed in your browser, but instead by rss reader software. If you do not know what this means - you can safely ignore it, as it is provided for advanced users with rss reader software only.
Copyright © 1992-2024 PawPrint.net
web development: PawPrint.net