Skip to content

Commit

Permalink
Merge branch 'dev' into 'main'
Browse files Browse the repository at this point in the history
chore: Revert the limit size

See merge request locker/maily!8
  • Loading branch information
khaitranquang committed Jan 24, 2024
2 parents 01ac0ac + 538fb5a commit 6e40df4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/maily/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ def get_text_html_attachments(self):
bucket, object_key = self.get_bucket_and_key_from_s3_json()
try:
message_content = s3_client.get_message_content_from_s3(bucket, object_key)
# Limit size is 25MB
if len(message_content) > 26214400:
if len(message_content) > 10485760:
return self.response(400, "Attachments are larger than AWS allows")
except ClientError as e:
if e.response["Error"].get("Code", "") == "NoSuchKey":
Expand Down

0 comments on commit 6e40df4

Please sign in to comment.