This commit is contained in:
piair 2023-08-21 19:46:57 +02:00
parent e2f47432c4
commit f1d74b9921

View File

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