Allowing for Adobe AIR Files in Your .htaccess File

Adobe AIR LogoThe Adobe AIR platform has introduced the new .air type of install file for their cross-platform offering and while many eager Adobe AIR programmers are offering their custom built .air projects on their websites, most haven’t gone to the effort of setting up the correct MIME type on the server. Of course, this means that in most cases browsers incorrectly deduce that it is a standard ZIP file on offer, causing unnecessary confusion on the part of the user and in its own way perhaps introducing a barrier to the willing adoption of the AIR platform.

A good way to deal with this is to set up your Apache web server to deal with this by setting the appropriate MIME type via your .htaccess file in order to deal with the .air extension. In order to do this, all you need is add the following line to your file:

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

Upload the file to your server and you should now be good to go! :)

You might also enjoy:

About Craig Lotter

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under the Funakoshi karate style and for the most part, simply enjoys life with his amazing wife and daughter. Oh, and he draws ever now and then too.
This entry was posted in Technology & Code, Tutorials. Bookmark the permalink.
    blog comments powered by Disqus