upgrade to flask2
This commit is contained in:
@@ -13,7 +13,7 @@ from revprox import ReverseProxied
|
||||
from utils import *
|
||||
|
||||
|
||||
__FLEES_VERSION__ = "20191031.0"
|
||||
__FLEES_VERSION__ = "20211018.0"
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(__name__)
|
||||
config_values = read_config(app)
|
||||
@@ -575,7 +575,7 @@ def download_direct(name,token,filename):
|
||||
"filename": file_path,
|
||||
"operation": "direct_download"
|
||||
})
|
||||
return send_from_directory(directory=share['path'], filename=filename)
|
||||
return send_from_directory(directory=share['path'], path=filename)
|
||||
|
||||
|
||||
@app.route('/download/gui/<name>/<path:filename>', methods=['GET'])
|
||||
@@ -843,7 +843,7 @@ def download_file(name, filename, token = None):
|
||||
"filename": file_path,
|
||||
"operation": "download"
|
||||
})
|
||||
return send_from_directory(directory=share['path'], filename=filename)
|
||||
return send_from_directory(directory=share['path'], path=filename)
|
||||
|
||||
|
||||
def file_versionize(full_path):
|
||||
|
||||
Reference in New Issue
Block a user