Attaching a file to a Chatter post is a one-click action in the feed composer. The platform creates the FeedItem and FeedAttachment records automatically.
- Open the feed composer
On any feed-enabled record page or the Chatter Home page, click the New Post compose area. The feed composer opens.
- Drag a file or click the attachment icon
Drag a file from your desktop into the composer, or click the paperclip icon to browse. The file uploads and appears as an attachment in the composer.
- Attach multiple files (optional)
Repeat to add additional files. The composer supports multiple files per post; each becomes its own FeedAttachment record.
- Add post text
Type the post body. Mention users with @username if relevant. The text accompanies the attachments in the feed.
- Post
Click Share. The platform creates the FeedItem record, uploads files to ContentVersion if new, creates a FeedAttachment per file linking to the FeedItem.
- Verify in the feed
The feed refreshes and shows your post with the attachments inline. Click an attachment to view or download the file.
The feed post the attachment belongs to. Set via the FeedEntityId field.
Content, Link, or Image. Drives rendering in the feed UI.
Pointer to the underlying file (ContentVersion Id) or URL (for Link type).
Display label for the attachment. Shown in feed.
- File storage is shared across the org. Feed Attachments do not duplicate storage but they do count toward the file storage allocation.
- External link attachments are not stored in Salesforce. If the linked URL goes away, the attachment shows a broken link in the feed.
- File-level access trumps feed access. A user with feed access but no file access cannot open the attachment.
- Comment attachments require enabled FeedComment posting. Restricting comment posting prevents users from attaching files to comments.