I have a static folder that is managed by apache where images are stored.
I wonder if it’s possible by configuring apache to send all files from that folder as downloadable files, not opening them as images inside browser? I suppose I can do it by creating a special view in Flask, but I think it would be nicer if I could do it with some more simple solution.
I have a static folder that is managed by apache where images are stored.
Share
flask.send_from_directorywithas_attachment=Trueargument can do this.Also, you can configure Apache to send
Content-Disposition: attachmentheader like in this answer