Issue #2095 new

.apk files are served with a confusing media type for Android-phones (BB-887)

Magnus Hoff
created an issue

I'd like to place a compiled Android application (an .apk-file) in the Downloads-section of my project. This is of course straightforward, but when I point my Android phone to that URL it reports that the file is of an unknown type, and I am unable to install the application.

I have not had a similar experience when uploading an .apk to other places, and I suspect that it is because of the media type, which bitbucket declares as "application/octet-stream".

[[http://en.wikipedia.org/wiki/APK_(file_format)|The correct media-type for .apk files is "application/vnd.android.package-archive".]]

Comments (3)

  1. Magnus Bondesson

    We have the same problem when downloading apks from Confluence. I'm assuming it's the same reason but haven't checked. Any status on this? Is there a workaround? (like being able to set the mime type for apks somewhere in BitBucket/Confluence administration?)

  2. Log in to comment