nylas / nylas-nodejs

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
MIT License
166 stars 116 forks source link

Fixed issue where attachments < 3mb were not being encoded correctly #559

Closed mrashed-dev closed 2 months ago

mrashed-dev commented 2 months ago

Description

This PR fixes an issue where we were not encoding attachments less than 3mb properly. Furthermore, for CreateAttachmentRequest you may now provide your own base64 encoded string if you prefer to not have the SDK encode it.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.