Not all files are foto's
This commit is contained in:
parent
b7d4075690
commit
0cf74b3604
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ FORM = """
|
||||||
def form():
|
def form():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
for f in request.files.getlist('the_file'):
|
for f in request.files.getlist('the_file'):
|
||||||
f.save('./foto_' + secure_filename(f.filename))
|
f.save('./' + secure_filename(f.filename))
|
||||||
return FORM
|
return FORM
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue