接受多个文件
前端
<input type='file' name='filelist'>
<input type='file' name='filelist'>
<input type='file' name='filelist'>
...
后端
filelist = request.files.getlist(name属性值)
获取文件内容
单个文件
file = request.files.get('file')
content = file.read()
size = len(content)
多个文件
filelist = request.files.getlist('filelist')
for list in filelist:
content = file.read()