-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attachment helper for base64 encoding
- If the content is a Buffer and the disposition is 'attachment', then the Buffer will be encoded to a base64 string; - If a filePath is given, then file will be read and its content will be used, the rule to convert the file content to base64 is the same described above; - It's not allowed to use content and filePath together; - Added unit test for the new cases;
- Loading branch information
1 parent
c7aac15
commit 34fcd13
Showing
2 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters