Developers » Scripting Code Samples » Execute Script on File Uploads


Execute Script on File Uploads

Notice: We are currently working to improve this content. Once revisions are finalized, we will add the article to the Recently Updated Articles section on the product's Documentation Home page. Learn more.

Workflow enables you to use scripts to perform deeper and more complex validations on file uploads by users. To ensure a file meets specific requirements, you can create a script that will execute on the File Upload field type when a user uploads a file. You will need to create a Form type script that you will attach to the File Upload field for the After changing the value of custom field event. 

You can use the following method to retrieve the file that has been uploaded by a user:


Important: You must use this method on a Form type script to get the uploaded file. The file returned is based on the context of the field it is assigned to.

Related Articles