I am trying to read multiple images uploaded by the user through HTML page. I am not sure, how the multiple files are handled. I presumed that, the files can be handled as an index but it went wrong. Please find the HTML code below:
<form action="" method=post enctype=multipart/form-data>
<p><input type=file name="newname" multiple>
<input type=submit value=License name=submit_button>
</form>
My python code below that I tried:
@app.route("/", methods=['GET', 'POST'])
def index():
blob=file[0].read()
The error I received is :
TypeError: 'FileStorage' object does not support indexing
Please help me in doing this
Thank you in advance