İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3383 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 20
16066
2
Haz 24
4694
0
Oca 21
3629
1
Tem 16
7757
2
Eki 24
3855