Skip to Content
Menú
This question has been flagged
1 Respondre
3337 Vistes

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?

Avatar
Descartar
Autor Best Answer

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.



Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 20
16018
2
de juny 24
4666
0
de gen. 21
3607
1
de jul. 16
7739
2
d’oct. 24
3801