From 0cf74b3604bb1f1f8d0cbf1164ce9bc9bb10531e Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 15 Apr 2020 00:36:39 +0200 Subject: [PATCH] Not all files are foto's --- local/bin/saveserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/bin/saveserver.py b/local/bin/saveserver.py index 0309a78..75ba528 100755 --- a/local/bin/saveserver.py +++ b/local/bin/saveserver.py @@ -17,7 +17,7 @@ FORM = """ def form(): if request.method == "POST": for f in request.files.getlist('the_file'): - f.save('./foto_' + secure_filename(f.filename)) + f.save('./' + secure_filename(f.filename)) return FORM