From 280d4c79c3e6f04d75060d759b094ab03918f59e Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 20:42:16 +0200 Subject: [PATCH] meh ? --- Flask/app.py | 2 +- Flask/templates/settings.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 4e42a89..38ad773 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -417,7 +417,7 @@ def allowed_file(filename): return '.' in filename and \ filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS -@app.route('/upload_file/', methods=['POST']) +@app.route('/upload_file/', methods=['POST', "GET"]) @login_required def upload_file(): print(request.files) diff --git a/Flask/templates/settings.html b/Flask/templates/settings.html index d5136ff..7974c04 100644 --- a/Flask/templates/settings.html +++ b/Flask/templates/settings.html @@ -74,7 +74,7 @@ -
+