Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,12 +88,11 @@ def upload_file():
|
|
| 88 |
|
| 89 |
if file and allowed_file(file.filename):
|
| 90 |
filename = secure_filename(file.filename)
|
| 91 |
-
file_path = os.path.join(app.config['UPLOAD_FOLDER'])
|
| 92 |
if file_path:
|
| 93 |
-
print("Folder got it")
|
| 94 |
else:
|
| 95 |
print("Folder not got it......................")
|
| 96 |
-
file_path = os.path.join(app.config['UPLOAD_FOLDER'], filename)
|
| 97 |
try:
|
| 98 |
file.save(file_path)
|
| 99 |
flash('File uploaded successfully', 'success')
|
|
|
|
| 88 |
|
| 89 |
if file and allowed_file(file.filename):
|
| 90 |
filename = secure_filename(file.filename)
|
| 91 |
+
file_path = os.path.join(app.config['UPLOAD_FOLDER'], filename)
|
| 92 |
if file_path:
|
| 93 |
+
print("Folder got it", file_path)
|
| 94 |
else:
|
| 95 |
print("Folder not got it......................")
|
|
|
|
| 96 |
try:
|
| 97 |
file.save(file_path)
|
| 98 |
flash('File uploaded successfully', 'success')
|