Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3377 Представления

I created a page on the website in which the user uploads an excel file (using form input type = "file") and I process it in the controller. but where is the path of the uploaded file? Is it saved in the database? is the file deleted after it is uploaded?

Аватар
Отменить
Автор Лучший ответ

Figured it out myself:

Uploading a file using HTML form creates a werkzeug.FileStorage object and it won't save in a location. You can save it using file.save(dst='//path') in the controller after reading the file.



Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июл. 20
16048
2
июн. 24
4677
0
янв. 21
3623
1
июл. 16
7752
2
окт. 24
3839