Commit 43d60778 authored by Pavel Yakunin's avatar Pavel Yakunin

cleanup

parent 18e341d6
...@@ -1105,7 +1105,7 @@ def upload(): ...@@ -1105,7 +1105,7 @@ def upload():
flash("Failed to create path %s (Permission denied)." % filepath, category="error") flash("Failed to create path %s (Permission denied)." % filepath, category="error")
return redirect(url_for('index')) return redirect(url_for('index'))
try: try:
move(meta.file_path, saved_filename) #remove as well move(meta.file_path, saved_filename)
except OSError: except OSError:
flash("Failed to store file %s (Permission denied)." % saved_filename, category="error") flash("Failed to store file %s (Permission denied)." % saved_filename, category="error")
return redirect(url_for('index')) return redirect(url_for('index'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment