diff options
Diffstat (limited to 'qc_app/entry.py')
-rw-r--r-- | qc_app/entry.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qc_app/entry.py b/qc_app/entry.py index 31d64ca..f91e59d 100644 --- a/qc_app/entry.py +++ b/qc_app/entry.py @@ -41,6 +41,8 @@ def upload_file(): filename = secure_filename(text_file.filename) if not os.path.exists(app.config["UPLOAD_FOLDER"]): os.mkdir(app.config["UPLOAD_FOLDER"]) + + filepath = os.path.join(app.config["UPLOAD_FOLDER"], filename) text_file.save(os.path.join(app.config["UPLOAD_FOLDER"], filename)) return redirect(url_for( |