Flask send_file() alternative

So is there a workaround or tutorial on how to return a file since send_file() does not work? Any links would be appreciated.

Are you trying to render a template? Allow download of a file?

The app lets an user upload a file, the app processes the file and then it downloads it. This process is working fine on my laptop but not once it's hosted here. The issue comes from send_file() so I wanted to know if there are alternatives?

Flasks send_file works fine. What makes you think it doesn't work?

Flasks send_file does not work with a BytesIO object

See this thread for why and how to work around it.

We have written a help page to help with this in future