upload: Stop requiring callers pass in the file size.

This can be calculated because we have the contents.
This commit is contained in:
Alex Vandiver
2024-06-20 17:52:55 +00:00
committed by Tim Abbott
parent 58a9fe9af1
commit f52a93bc14
12 changed files with 25 additions and 59 deletions

View File

@@ -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,