> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attachments

> Process and download attachments extracted from incoming emails.

# Inbound Attachments

Attachments included with incoming emails are uploaded to secure, encrypted storage and delivered as temporary presigned URLs in the webhook payload.

## Accessing Attached Files

```typescript theme={null}
const attachment = payload.data.attachments[0];
console.log(attachment.filename);    // e.g. "contract.pdf"
console.log(attachment.content_type);// e.g. "application/pdf"
console.log(attachment.size);        // bytes
console.log(attachment.download_url);// Temporary presigned S3 download link
```


## Related topics

- [Attachments](/sending/attachments.md)
- [Retrieve Attachment](/api/emails/retrieve-attachment.md)
- [List Attachments](/api/receiving/list-attachments.md)
