mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
upload: Stop requiring callers pass in the file size.
This can be calculated because we have the contents.
This commit is contained in:
committed by
Tim Abbott
parent
58a9fe9af1
commit
f52a93bc14
@@ -327,7 +327,6 @@ def extract_and_upload_attachments(message: EmailMessage, realm: Realm, sender:
|
||||
if isinstance(attachment, bytes):
|
||||
upload_url = upload_message_attachment(
|
||||
filename,
|
||||
len(attachment),
|
||||
content_type,
|
||||
attachment,
|
||||
sender,
|
||||
|
||||
Reference in New Issue
Block a user