title: Flask; IOS; iPhone; Mac (Safari) Download and Stream
body: <p>at fist sry for my english :D ^^</p>
  
  <p>Information: i want to stream and Download Music
  this is my code atm:</p>
  
  <pre><code>@app.route('/HTTP_Download/uploads/&lt;filename&gt;/&lt;path:filepath&gt;')
  def download_file(filename, filepath):
      uploads_temp = os.path.join(filepath)
      uploads = "/%s" % uploads_temp
      return send_from_directory(uploads, filename, as_attachment=True)
  </code></pre>
  
  <p>this code runs by my Mac and other Computers only on my iPhone it strikes and it play the music directly in the Safari Browser.... but i want to download it... and store it on my phone
  how i get this to work ?</p>
  
  <p>and an other Problem about Stream.
  is it Possible to Stream the Music like this over a template</p>
  
  <pre><code>render_template('Download_or_Stream.html', string_variable=mp3)
  </code></pre>
  
  <p>in the template: Download_or_Stream.html:
  play the song over an Audio tag ?</p>
  
  <p>i have no idea what i can do to run this code .....
  i´m at the end :D</p>
  
  <p>i hope anyone can help me out.</p>
  
  <p>thx</p>