Skip to content

Commit 605106a

Browse files
authored
Merge pull request #3646 from rtibbles/file_format
Use the file format as the default extension in case the passed in name for the file does not have one.
2 parents d913900 + ad98206 commit 605106a

File tree

1 file changed

+1
-1
lines changed
  • contentcuration/contentcuration/viewsets

1 file changed

+1
-1
lines changed

contentcuration/contentcuration/viewsets/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def upload_url(self, request):
156156

157157
might_skip = File.objects.filter(checksum=checksum).exists()
158158

159-
filepath = generate_object_storage_name(checksum, filename)
159+
filepath = generate_object_storage_name(checksum, filename, default_ext=file_format)
160160
checksum_base64 = codecs.encode(
161161
codecs.decode(checksum, "hex"), "base64"
162162
).decode()

0 commit comments

Comments
 (0)