diff --git a/application/parser/file/bulk.py b/application/parser/file/bulk.py index 8201b3f2..da6dc298 100644 --- a/application/parser/file/bulk.py +++ b/application/parser/file/bulk.py @@ -158,7 +158,7 @@ class SimpleDirectoryReader(BaseReader): data = f.read() # Prepare metadata for this file if self.file_metadata is not None: - file_metadata = self.file_metadata(str(input_file)) + file_metadata = self.file_metadata(input_file.name) else: # Provide a default empty metadata file_metadata = {'title': '', 'store': ''}