From 259a3ad71305be691e5846fcee68588a776a11b9 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 20:51:29 +0200 Subject: [PATCH] yeah i mean... --- Flask/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 9b19e65..2ec06ab 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -425,17 +425,17 @@ def upload_file(): # check if the post request has the file part if 'file' not in request.files: print('No file part') - return redirect(url_for('settings_get')) + #return redirect(url_for('settings_get')) file = request.files['file'] # If the user does not select a file, the browser submits an # empty file without a filename. if file.filename == '': print('No selected file') - return redirect(url_for('settings_get')) + #return redirect(url_for('settings_get')) if file and allowed_file(file.filename): filename = secure_filename(file.filename) file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename)) - return redirect(url_for('settings_get')) + #return redirect(url_for('settings_get')) return ''' Upload new File