new Attachment()
- Source:
Methods
(static) fromFile(filePath, typeopt)
- Source:
Produce an {Attachment} instance based on a local file-system file.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
filePath |
string | ||
type |
string |
<optional> |
The file mime type. |