Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def upload_file():
|
|
| 107 |
return redirect(url_for('index'))
|
| 108 |
|
| 109 |
file.save(os.path.join(app.config['UPLOAD_FOLDER'], target_file))
|
| 110 |
-
flash(f'File successfully uploaded
|
| 111 |
else:
|
| 112 |
flash('File type not allowed. Please upload .txt files only.', 'error')
|
| 113 |
|
|
|
|
| 107 |
return redirect(url_for('index'))
|
| 108 |
|
| 109 |
file.save(os.path.join(app.config['UPLOAD_FOLDER'], target_file))
|
| 110 |
+
flash(f'File successfully uploaded', 'success')
|
| 111 |
else:
|
| 112 |
flash('File type not allowed. Please upload .txt files only.', 'error')
|
| 113 |
|