1from config import directory_to_image_folder
2
3#first create the route
4@app.route('/uploads/<path:filename>')
5def download_file(filename):
6 return send_from_directory(directory_to_image_folder, filename, as_attachment=True)
7
8#add this to the template inside of an image tag
9<img width="100%" height="100%" src="{{ url_for('download_file', filename='name_of_image.extension') }}">