From 8444fdbb2defcb49ddef3ff6c241b76ed58987f7 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 20:43:55 +0200 Subject: [PATCH] chelou cette affaire --- Flask/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Flask/app.py b/Flask/app.py index 38ad773..0d8ccff 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -434,7 +434,9 @@ def upload_file(): 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('download_file', name=filename)) + return redirect(url_for('settings')) + else : + print("file not ok") def maxi(dict): m = 0