Skip to content
Advertisement

Heroku App, Created File with Python, how can I get the download url?

with my Flask App I created some files to the heroku filesystem. I know that the files are deleted by each dyno restart.

In my html/javascript frontend I want to download it now via button.

The question is, how can I get the download url of these files in the heroku filesystem?

Thank you!

Advertisement

Answer

I got the solution for my problem:

Python:

JavaScript

Javascript:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement