K
K
kolomiec_artiom2020-02-23 13:51:53
Python
kolomiec_artiom, 2020-02-23 13:51:53

How to stream mp3 files in python, Flask?

Hello! Not on my server is an mp3 file called "example.mp3". I need to organize the transfer of this file to another user by changing the name of this file to "my_name.mp3". At the same time, I would not really like to fully save the file on my server beforehand.

I tried this solution: izmailoff.github.io/web/flask-file-streaming but, unfortunately, the download of the file does not start, but only a window opens that allows this file to be played

. In short: I want to achieve that I can send the user a link, by clicking on which he could instantly download an mp3 file with the name I want (At the same time, the file is not stored on my server) I

plan to implement it using flask + python

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-02-23
@kolomiec_artiom

send_file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question