Flask image upload in HTML?
问题 So, I wanted to upload an image in my website(HTML). The box does show up when I run the code but it does not show the image, instead it shows the image name. This is the code I used: app = Flask( name ) <img src="{{ url_for('static', filename='image.jpg') }}" alt="image.jpg" width=208 length=284> I did try putting my image and code in the directory : /html/static I even tried a code as simple as this but it didn't work: from flask import Flask app = Flask(__name__) @app.route('/new') def new