Need to restrict size for an attachment field in Custom table.

Arthi Priya R
Tera Contributor

Hi Team

 

I have created an attachment field in  my custom table in scoped application.Now I want to restrict the attachment size to 10 MB.If user upload document more than 10 MB it should show error message and stop the form submission. Can someone help to implement this logic?

4 REPLIES 4

ankitbanerj
Tera Expert

Hi, @Arthi Priya R 

Please use this property 'com.glide.attachment.max_size'

Best regards,
Ankit B

If this solution worked for you, kindly mark it as Accepted Solution and give it a Helpful rating to support the community.



Ankur Bawiskar
Tera Patron
Tera Patron

@Arthi Priya R 

I shared solution for something similar on catalog item attachment variable and validate the file name, enhance it for file size

Not Allow Special Characters in the attachment type variable in the Service Catalog 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Arthi Priya R 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader