Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit e7ea72f

Browse files
Allow for large Incoming files
1 parent 9dd42aa commit e7ea72f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)