What is the correct mime-type for serving an iPhone .ipa file?

前端 未结 3 1897
执笔经年
执笔经年 2021-02-02 07:54

I\'m trying to post .ipa files onto our apache web server for our beta testers to download. Currently I\'m using the following line in .htaccess to serve the files:



        
相关标签:
3条回答
  • 2021-02-02 08:24

    I suggest you look into Hockey which seems like a good way to distribute Ad Hoc updates more seamlessly. php based though.

    0 讨论(0)
  • 2021-02-02 08:32

    I voted up the other answers as they were both helpful, but this is what I ended up needing to fix the problem.

    AddType application/octet-stream .ipa
    <Files *.ipa>
      Header set Content-Disposition attachment
    </Files>
    
    0 讨论(0)
  • 2021-02-02 08:41

    A .ipa file is a zip file:

    $ file 'Kindle 2.2.1.ipa' 
    Kindle 2.2.1.ipa: Zip archive data, at least v1.0 to extract
    

    That's likely why IE is helpfully changing the extension for you. Microsoft's documentation seems to indicate that might be the case:

    Internet Explorer sets the file name extension of a downloaded file based on a few pieces of information available from the HTTP server and from the file itself.

    0 讨论(0)
提交回复
热议问题