I have a custom list form that implements OOTB file upload control to add attachments to the list item. Upon save, the attachments are saved to the item. But before saving the list item with attachments, I would like to validate for the following:
- Limit only one attachment per list item.
- Validate for attachment size which should not be more than 250KB.
Please let me know if the above can be implemented. Thank you.