We are currently attempting to restrict which files can be globally uploaded in our org using information present on the ContentVersion / Attachment objects. However, in the case of files uploaded through Salesforce Classic chatter comments, it appears that this action does not fire triggers on ContentVersion or Attachment objects. While submitting the comment fires triggers on FeedItem, it does not affect the file which is already uploaded at the moment of selection. I can see that under the hood the file data is posted to a url similar to chatter/handlers/chatterfile
Steps to Reproduce in Salesfose Classic
- Start creating a chatter comment
- Press attach files
- Select a file from the computer
- The file is uploaded with no triggers being ran
I would appreciate any help or possible workaround on this issue