From 38de2f040d4abfd6b4a805cec5e9946869e1a7b2 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 21:28:18 +0200 Subject: [PATCH] quoi que j'avais dit --- Flask/app.py | 3 ++- Flask/templates/settings.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index aa527b4..d5ea02a 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(i) print(f'file{i}' in request.files) print("requete bizarre") return redirect(url_for('settings_get')) diff --git a/Flask/templates/settings.html b/Flask/templates/settings.html index 063ef76..169eb35 100644 --- a/Flask/templates/settings.html +++ b/Flask/templates/settings.html @@ -78,7 +78,7 @@