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)
|
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
|
||||||
|
|
Loading…
Reference in New Issue