Hello i am doing a proyect in pyhton with flask an i pretend to introduce a txt and read it.
This code is part of home.html:
<input type="file" id="gameTXT" name="gameTXT" accept="txt">
<input type="submit" id="submitTXT" value="Submit">
and this one is the part of python:
@app.route("/")
def home():
return render_template('home.html')
How can i get the file? I read that i need to put methods=['GET'] but i don't know where to put it
I try to put methods=['GET'] in the app.route("/") but it doesn't work and it's understandable. I expect to get the file