Small fixes
This commit is contained in:
parent
a682ea17c1
commit
3e6e51e308
|
@ -295,7 +295,7 @@ def upload_from_pc(request):
|
||||||
form = request.form
|
form = request.form
|
||||||
count = 0
|
count = 0
|
||||||
status = None
|
status = None
|
||||||
for upload in request.files.getlist("file"):
|
for upload in reversed(request.files.getlist("file")):
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
# Make a temp filename for it.
|
# Make a temp filename for it.
|
||||||
|
|
|
@ -100,7 +100,7 @@ def upload():
|
||||||
# Good!
|
# Good!
|
||||||
if is_ajax:
|
if is_ajax:
|
||||||
# Was it a multiple upload?
|
# Was it a multiple upload?
|
||||||
if result["multi"]:
|
if result.get("multi"):
|
||||||
return ajax_response(True, url_for(".album_index", name=album))
|
return ajax_response(True, url_for(".album_index", name=album))
|
||||||
else:
|
else:
|
||||||
return ajax_response(True, url_for(".crop", photo=result["photo"]))
|
return ajax_response(True, url_for(".crop", photo=result["photo"]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user