as the example shows

This commit is contained in:
piair 2023-08-21 20:50:38 +02:00
parent 60734a373e
commit e668d312b6

View File

@ -436,8 +436,15 @@ def upload_file():
filename = secure_filename(file.filename)
file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
return redirect(url_for('settings_get'))
else :
print("file not ok")
return '''
<!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):
m = 0