콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3414 화면

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
16098
2
6월 24
4718
0
1월 21
3658
1
7월 16
7798
2
10월 24
3883