I am trying to upload multiple files using HTML into my flask application. I have used an html form below
<form action="url", method="POST", enctype="multipart/form-data">
<font size="2">
File2: <input type=file name=file1><br/>
File1: <input type=file name=file2><br/>
</font>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
and the files are being read in an Flask package as
@app.route('/process_data', methods=["POST"])
def process_data():
print request.files
when I tested this and I only upload a single file this runs fine but when I upload both the files I can see that the request.files field is empty.
I is not possible to upload multiple files into flask from one form ?