Commit be15f378 authored by kyos's avatar kyos

Fixed issue reported by Jkrehm to prevent filesize to fail

parent 3366aae6
...@@ -2737,7 +2737,7 @@ def edit_book(book_id): ...@@ -2737,7 +2737,7 @@ def edit_book(book_id):
filepath = config.config_calibre_dir + os.sep + book.path filepath = config.config_calibre_dir + os.sep + book.path
filepath = os.path.normpath(filepath) filepath = os.path.normpath(filepath)
saved_filename = filepath + os.sep + file_name + '.' + file_ext saved_filename = filepath + os.sep + file_name + '.' + file_ext
file_size = os.path.getsize(requested_file.stream.name) file_size = os.path.getsize(saved_filename)
try: try:
requested_file.save(saved_filename) requested_file.save(saved_filename)
......
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