Skip to content

Commit 6046c10

Browse files
committed
Merge branch '14-allow-renaming-of-files-upon-upload'
2 parents af4c3b0 + 1261531 commit 6046c10

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dvuploader/file.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def extract_file_name_hash_file(self):
7474
self.directory_label = os.path.dirname(self.filepath)
7575
self.handler.seek(0)
7676

77-
self.file_name = os.path.basename(self.filepath)
77+
if self.file_name is None:
78+
self.file_name = os.path.basename(self.filepath)
79+
7880
self.checksum = Checksum.from_file(
7981
handler=self.handler,
8082
hash_fun=hash_fun,

0 commit comments

Comments
 (0)