### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)tags/v0.11.0
| f2d = cls.get_by_file_id(file_id) | f2d = cls.get_by_file_id(file_id) | ||||
| if f2d: | if f2d: | ||||
| file = File.get_by_id(f2d[0].file_id) | file = File.get_by_id(f2d[0].file_id) | ||||
| if file.source_type == FileSource.LOCAL: | |||||
| if not file.source_type or file.source_type == FileSource.LOCAL: | |||||
| return file.parent_id, file.location | return file.parent_id, file.location | ||||
| doc_id = f2d[0].document_id | doc_id = f2d[0].document_id | ||||