mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-20 14:19:04 +08:00
fix: After the file is deleted, it still remains in the bucket. (#7482)
### What problem does this PR solve? Fix: After deleting the file from the file management menu, it was not removed from the MinIO bucket. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): Co-authored-by: liuzhenghua-jk <liuzhenghua-jk@360shuke.com>
This commit is contained in:
parent
bc3160f75a
commit
b1c8746984
@ -257,6 +257,7 @@ def rm():
|
|||||||
STORAGE_IMPL.rm(file.parent_id, file.location)
|
STORAGE_IMPL.rm(file.parent_id, file.location)
|
||||||
FileService.delete_folder_by_pf_id(current_user.id, file_id)
|
FileService.delete_folder_by_pf_id(current_user.id, file_id)
|
||||||
else:
|
else:
|
||||||
|
STORAGE_IMPL.rm(file.parent_id, file.location)
|
||||||
if not FileService.delete(file):
|
if not FileService.delete(file):
|
||||||
return get_data_error_result(
|
return get_data_error_result(
|
||||||
message="Database error (File removal)!")
|
message="Database error (File removal)!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user