We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9dd42aa + e7ea72f commit bc0f44dCopy full SHA for bc0f44d
sendgrid/helpers/inbound/parse.py
@@ -54,7 +54,7 @@ def _get_attachments(self, request):
54
filename = secure_filename(filestorage.filename)
55
attachment['type'] = filestorage.content_type
56
attachment['file_name'] = filename
57
- attachment['contents'] = base64.b64encode(filestorage.getvalue())
+ attachment['contents'] = base64.b64encode(filestorage.read())
58
attachments.append(attachment)
59
return attachments
60
0 commit comments