Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upload: Don't access emoji_file.name attribute upload_emoji_image.
Mateusz Manderafe61243cfe98
diff --git a/zerver/lib/upload.py b/zerver/lib/upload.pyindex 6f57aa97236..aed57bbd3c6 100644--- a/zerver/lib/upload.py+++ b/zerver/lib/upload.py@@ -684,7 +684,7 @@ class S3UploadBackend(ZulipUploadBackend):def upload_emoji_image(self, emoji_file: IO[bytes], emoji_file_name: str, user_profile: UserProfile) -> bool:- content_type = guess_type(emoji_file.name)[0]+ content_type = guess_type(emoji_file_name)[0]emoji_path = RealmEmoji.PATH_ID_TEMPLATE.format(realm_id=user_profile.realm_id,emoji_file_name=emoji_file_name,