title: Force download file in a Django Web App on mobile browsers
body: <p>I have a FileField with a movie, I'm trying to have the user on a mobile platform (chrome/safari) be able to click a download button and it download it. Currently it opens in a new window no matter what I do. </p>
  
  <p>My View</p>
  
  <pre><code>def download(request):
      file_path = 'movie.mp4'
      if os.path.exists(file_path):
          with open(file_path, 'rb') as fh:
              response = HttpResponse(fh.read(), content_type="video/mp4")
              response['Content-Disposition: attachment'] = 'inline; filename=' + os.path.basename(file_path)
              return response
      raise Http404
  </code></pre>
  
  <p>file path is hard coded for testing purposes atm.</p>
  
  <p>Everything I read tells me that it's impossible because safari and other mobile browsers view opening a better experience than downloading. I've tried changing mime types and other things.</p>