From aeb93e8a55b75da956670e9d72fc5262cf5eef76 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 21:26:21 +0200 Subject: [PATCH] hmm? --- Flask/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flask/app.py b/Flask/app.py index 71cefd0..aa527b4 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -432,13 +432,14 @@ def upload_file(): if file.filename == '': print('end of files') return redirect(url_for('settings_get')) + elif file and allowed_file(file.filename): filename = secure_filename(file.filename) print(os.path.join('/app/MsRewards-Reborn/user_data/', filename)) file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename)) i += 1 - + print(f'file{i}' in request.files) print("requete bizarre") return redirect(url_for('settings_get'))