This commit is contained in:
piair 2023-08-21 19:46:57 +02:00
parent e2f47432c4
commit f1d74b9921
1 changed files with 4 additions and 3 deletions

View File

@ -406,10 +406,11 @@ def logs():
@login_required
@app.route('/download/<path:filename>', methods=['GET', 'POST']) @app.route('/download/<path:filename>', methods=['GET', 'POST'])
def download(filename): @login_required
return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename) def download(filename):
print("file send !")
return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename, as_attachment=True)