Forums

Flask

I am using flask as the backend for my application. In my local machine I use 'send_from_directory' extension to make a file downloadable by the user, but here as the appis hosted, this doesn't work. In other words, How to make a file that is located in my project files downloadable by the user ?

If something is not working in your web app, it's good to check the error logs (you'll find links to them on the Web page). You could use serve the files statically (using static files mappings) but that would expose those files for everyone. If you want your app to have more controle over which files and when are being exposed, you may have a look at this help page.