Skip to content

Commit afdc9d4

Browse files
committed
fix file uploads?
1 parent 2d762d6 commit afdc9d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

files/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ def get_file_info(file: TemporaryUploadedFile) -> dict:
116116

117117

118118
def get_file_mime_type(file: TemporaryUploadedFile):
119-
return magic.from_file(file.temporary_file_path(), mime=True)
119+
return magic.from_file(file.name, mime=True)

0 commit comments

Comments
 (0)