Not all files are foto's
This commit is contained in:
parent
b7d4075690
commit
0cf74b3604
@ -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…
Reference in New Issue
Block a user