I am creating a Publisher Action that uses a visualforce page and controller. All it essentially does is create an Attachment and insert it, but it works a little bit different from the default 'File' Publisher Action.
After it uploads the Attachment it is supposed to post back to Chatter. When using the default 'File' Publisher Action, you get a nice looking Chatter post with the title of the attachment hyper-linked to the attachment, a 'download file' link, an attachment icon, and a nice box around the whole thing.(See the following)
Is there anyway that I utilize this framework, or somehow use this Chatter post format in a FeedItem?