Hi, My server for some reason displays .AIR file inside the browser, but I want to have it downloaded. How can I do this?
+2
A:
Set the Content-Disposition
header of the HTTP response to attachment
, if necessary along with a filename
.
BalusC
2010-04-04 05:08:38
A:
Thanks, but I think this is the best solution - Setting the correct MIME type: http://blogs.adobe.com/ashutosh/2009/02/setting_the_correct_mime_type.html
Mike
2010-04-04 18:59:25
+1
A:
In your server’s .htaccess (if it is an Apache) add the following line to trigger the download dialog:
AddType application/octet-stream .air
If you want the user’s browser let decide what to do, use the type @Mike has recommended:
AddType application/vnd.adobe.air-application-installer-package+zip .air
toscho
2010-04-04 19:15:51