In this demo we will show you:
- how to use the value rules of a file upload control to restrict the file size.
- We will attach the file to a Salesforce account object only if it's below 1MB, otherwise an error message will be displayed to the user.
For more information read about limiting the file upload size in your form