mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-04 07:33:53 +01:00 
			
		
		
		
	yeah i mean...
This commit is contained in:
		@@ -425,17 +425,17 @@ def upload_file():
 | 
				
			|||||||
    # check if the post request has the file part
 | 
					    # check if the post request has the file part
 | 
				
			||||||
    if 'file' not in request.files:
 | 
					    if 'file' not in request.files:
 | 
				
			||||||
        print('No file part')
 | 
					        print('No file part')
 | 
				
			||||||
        return redirect(url_for('settings_get'))
 | 
					        #return redirect(url_for('settings_get'))
 | 
				
			||||||
    file = request.files['file']
 | 
					    file = request.files['file']
 | 
				
			||||||
    # If the user does not select a file, the browser submits an
 | 
					    # If the user does not select a file, the browser submits an
 | 
				
			||||||
    # empty file without a filename.
 | 
					    # empty file without a filename.
 | 
				
			||||||
    if file.filename == '':
 | 
					    if file.filename == '':
 | 
				
			||||||
        print('No selected file')
 | 
					        print('No selected file')
 | 
				
			||||||
        return redirect(url_for('settings_get'))
 | 
					        #return redirect(url_for('settings_get'))
 | 
				
			||||||
    if file and allowed_file(file.filename):
 | 
					    if file and allowed_file(file.filename):
 | 
				
			||||||
        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'))
 | 
				
			||||||
    return '''
 | 
					    return '''
 | 
				
			||||||
    <!doctype html>
 | 
					    <!doctype html>
 | 
				
			||||||
    <title>Upload new File</title>
 | 
					    <title>Upload new File</title>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user