---
title: MFMessageComposeViewControllerAttachmentAlternateFilename
framework: messageui
role: symbol
role_heading: Global Variable
path: messageui/mfmessagecomposeviewcontrollerattachmentalternatefilename
---

# MFMessageComposeViewControllerAttachmentAlternateFilename

The key for the alternate filename for the file-based item attached to the message.

## Declaration

```swift
let MFMessageComposeViewControllerAttachmentAlternateFilename: String
```

## Discussion

Discussion Use this constant with the attachments property to retrieve the optional, more descriptive name for a message attachment.

## See Also

### Managing attachments

- [disableUserAttachments()](messageui/mfmessagecomposeviewcontroller/disableuserattachments().md)
- [attachments](messageui/mfmessagecomposeviewcontroller/attachments.md)
- [addAttachmentURL(_:withAlternateFilename:)](messageui/mfmessagecomposeviewcontroller/addattachmenturl(_:withalternatefilename:).md)
- [addAttachmentData(_:typeIdentifier:filename:)](messageui/mfmessagecomposeviewcontroller/addattachmentdata(_:typeidentifier:filename:).md)
- [MFMessageComposeViewControllerAttachmentURL](messageui/mfmessagecomposeviewcontrollerattachmenturl.md)
- [insertCollaborationItemProvider(_:)](messageui/mfmessagecomposeviewcontroller/insertcollaborationitemprovider(_:).md)
