fix ppt file from filemanager error (#2470)

### What problem does this PR solve?

#2467

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-09-18 09:22:14 +08:00
committed by GitHub
parent e41268efc6
commit e7dd487779
2 changed files with 14 additions and 9 deletions

View File

@ -85,6 +85,7 @@ def convert():
"location": file.location,
"size": file.size
})
FileService.set_constant_parser(doc, file.name)
file2document = File2DocumentService.insert({
"id": get_uuid(),
"file_id": id,