|
|
@ -557,9 +557,9 @@ def upload_single_file(request, book, book_id):
|
|
|
|
WorkerThread.add(current_user.nickname, TaskUpload(
|
|
|
|
WorkerThread.add(current_user.nickname, TaskUpload(
|
|
|
|
"<a href=\"" + url_for('web.show_book', book_id=book.id) + "\">" + uploadText + "</a>"))
|
|
|
|
"<a href=\"" + url_for('web.show_book', book_id=book.id) + "\">" + uploadText + "</a>"))
|
|
|
|
|
|
|
|
|
|
|
|
return uploader.process(
|
|
|
|
return uploader.process(
|
|
|
|
saved_filename, *os.path.splitext(requested_file.filename),
|
|
|
|
saved_filename, *os.path.splitext(requested_file.filename),
|
|
|
|
rarExecutable=config.config_rarfile_location)
|
|
|
|
rarExecutable=config.config_rarfile_location)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def upload_cover(request, book):
|
|
|
|
def upload_cover(request, book):
|
|
|
|