WebashalarForML commited on
Commit
1fc8afa
·
verified ·
1 Parent(s): 5a7408a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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')