1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00

Fixed issue reported by Jkrehm to prevent filesize to fail

This commit is contained in:
kyos 2017-09-11 11:17:29 +02:00
parent 3366aae6c7
commit be15f3781f

View File

@ -2737,7 +2737,7 @@ def edit_book(book_id):
filepath = config.config_calibre_dir + os.sep + book.path
filepath = os.path.normpath(filepath)
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:
requested_file.save(saved_filename)