as the example shows

This commit is contained in:
piair 2023-08-21 20:50:38 +02:00
parent 60734a373e
commit e668d312b6
1 changed files with 9 additions and 2 deletions

View File

@ -436,8 +436,15 @@ def upload_file():
filename = secure_filename(file.filename) filename = secure_filename(file.filename)
file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename)) file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
return redirect(url_for('settings_get')) return redirect(url_for('settings_get'))
else : return '''
print("file not ok") <!doctype html>
<title>Upload new File</title>
<h1>Upload new File</h1>
<form method=post enctype=multipart/form-data>
<input type=file name=file>
<input type=submit value=Upload>
</form>
'''
def maxi(dict): def maxi(dict):
m = 0 m = 0