Not all files are foto's

This commit is contained in:
Felix Van der Jeugt 2020-04-15 00:36:39 +02:00
parent b7d4075690
commit 0cf74b3604
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 1 additions and 1 deletions

View File

@ -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