mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	as the example shows
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user