• Josh Summitt
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hello,
I need to run some operations when a file is uploaded via the Document tab. On other pages this is easy because i can trigger on Attachment or FeedItem, etc. I don't see a way to trigger when a file is being uploaded from Documents.

FYI i'm looking for someing like

trigger checkFile on Document(before insert){

}
Since document does not have a trigger function how can i check this before its completely uploaded to the database. I want to return an error if its not correct and prevent the file from being uploaded.

Hello,
I need to run some operations when a file is uploaded via the Document tab. On other pages this is easy because i can trigger on Attachment or FeedItem, etc. I don't see a way to trigger when a file is being uploaded from Documents.

FYI i'm looking for someing like

trigger checkFile on Document(before insert){

}
Since document does not have a trigger function how can i check this before its completely uploaded to the database. I want to return an error if its not correct and prevent the file from being uploaded.