Skip to main content
Get attachment file size in bytes

Parameters

required
Attachment object

Returns

Promise<number> File size in bytes, or 0 if file doesn’t exist