Skip to content

Commit bc0f44d

Browse files
Merge pull request #215 from sendgrid/large_files
Allow for large Incoming files
2 parents 9dd42aa + e7ea72f commit bc0f44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sendgrid/helpers/inbound/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _get_attachments(self, request):
5454
filename = secure_filename(filestorage.filename)
5555
attachment['type'] = filestorage.content_type
5656
attachment['file_name'] = filename
57-
attachment['contents'] = base64.b64encode(filestorage.getvalue())
57+
attachment['contents'] = base64.b64encode(filestorage.read())
5858
attachments.append(attachment)
5959
return attachments
6060

0 commit comments

Comments
 (0)