コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3356 ビュー

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.



アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 20
16033
2
6月 24
4671
0
1月 21
3619
1
7月 16
7742
2
10月 24
3811