Avoiding content type issues when downloading a file via browser on Android

To make any downloads work on all (and especially older) Android versions as expected, you need to…

  1. set the ContentType to application/octet-stream
  2. put the Content-Disposition filename value in double quotes
  3. write the Content-Disposition filename extension in UPPERCASE

Read my blog post for more details:
http://digiblog.de/2011/04/19/android-and-the-download-file-headers/

Leave a Comment