What I want to do is, when a user uploads a file that have duplicates in the site, the file will be deleted and a pop-up message will appear saying that there is a duplicate.
Thank you for the reply! I've tried setting up a rule to execute my js file. But I cannot display the error box. I tried using status.setCode(..), but it returns status not defined.