Merged #123.
Thanks @idalin. I think this solves permanently sending to kindle issues like (#94)
This commit is contained in:
parent
c98617a1cb
commit
0277d08706
|
@ -2136,7 +2136,6 @@ def upload():
|
||||||
db.session.connection().connection.connection.create_function("title_sort", 1, db.title_sort)
|
db.session.connection().connection.connection.create_function("title_sort", 1, db.title_sort)
|
||||||
db.session.connection().connection.connection.create_function('uuid4', 0, lambda: str(uuid4()))
|
db.session.connection().connection.connection.create_function('uuid4', 0, lambda: str(uuid4()))
|
||||||
if request.method == 'POST' and 'btn-upload' in request.files:
|
if request.method == 'POST' and 'btn-upload' in request.files:
|
||||||
file = request.files['btn-upload']
|
|
||||||
file = request.files['btn-upload']
|
file = request.files['btn-upload']
|
||||||
if '.' in file.filename:
|
if '.' in file.filename:
|
||||||
file_ext = file.filename.rsplit('.', 1)[-1].lower()
|
file_ext = file.filename.rsplit('.', 1)[-1].lower()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user