Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-6766

Incorrect MIME type header for *.apk downloads (BB-7870)

XMLWordPrintable

      I placed an .apk (android app format) file in Downloads section of my repo. When a user downloads the file, the server returns "Content-Type: binary/octet-stream" header, which I assume is a fallback for all unrecognized types.

      The problem is that Android requires "application/vnd.android.package-archive" mime type to recognize that the download is an app [1]. As it is now, if a user tries to install the downloaded app, Android default download manager fails with an unhelpful message "Can't open file".

      The solution would be to return the correct mime header for .apk downloads.

      [1] http://stackoverflow.com/questions/3253079/cant-install-apk-from-browser-downloads?rq=1#comment3363818_3253100

              Unassigned Unassigned
              legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: