forked from piair/MsRewards-Reborn
as the example shows
This commit is contained in:
parent
60734a373e
commit
e668d312b6
11
Flask/app.py
11
Flask/app.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user