mirror of
https://github.com/janeczku/calibre-web
synced 2025-09-02 02:47:58 +00:00
cleanup
This commit is contained in:
@@ -1105,7 +1105,7 @@ def upload():
|
||||
flash("Failed to create path %s (Permission denied)." % filepath, category="error")
|
||||
return redirect(url_for('index'))
|
||||
try:
|
||||
move(meta.file_path, saved_filename) #remove as well
|
||||
move(meta.file_path, saved_filename)
|
||||
except OSError:
|
||||
flash("Failed to store file %s (Permission denied)." % saved_filename, category="error")
|
||||
return redirect(url_for('index'))
|
||||
|
Reference in New Issue
Block a user