Skip to Content
Menu
This question has been flagged
1 Atsakyti
3269 Rodiniai

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?

Portretas
Atmesti
Autorius 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.



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 20
15887
2
birž. 24
4573
0
saus. 21
3534
1
liep. 16
7673
2
spal. 24
3702