diff --git a/dvuploader/file.py b/dvuploader/file.py index 85045ee..3dab308 100644 --- a/dvuploader/file.py +++ b/dvuploader/file.py @@ -74,7 +74,9 @@ def extract_file_name_hash_file(self): self.directory_label = os.path.dirname(self.filepath) self.handler.seek(0) - self.file_name = os.path.basename(self.filepath) + if self.file_name is None: + self.file_name = os.path.basename(self.filepath) + self.checksum = Checksum.from_file( handler=self.handler, hash_fun=hash_fun,