fix output
This commit is contained in:
parent
49ef0d513d
commit
fb78c61450
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -54,7 +54,7 @@ def delete_file(filename):
|
|||
|
||||
file_path = os.path.join(app.config['UPLOAD_DIRECTORY'], filename)
|
||||
if not os.path.isfile(file_path):
|
||||
return jsonify({'error': 'File \'{}\' not found'}), 404
|
||||
return jsonify({'error': 'File not found'}), 404
|
||||
|
||||
os.remove(file_path)
|
||||
return jsonify({'success': 'File \'{}\' successfully deleted'.format(filename)})
|
||||
|
|
Reference in a new issue