|
|
@ -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()
|
|
|
|