Я видел, что один уже, но я думаю, что где-то в коде есть ошибка.
Это моя форма, которая в index.html
<form action="http://localhost:5000/uploader" method="POST"
enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" />
</form>
А это функция фляги:
@app.route('/uploader', methods=['GET', 'POST'])
def upload_file():
if request.method == 'POST':
f = request.files['file']
# f.save(f.filename)
return 'file uploaded successfully'
Не работает вообще ... Любые хорошие учебники илиВаши ответы более чем приветствуются.