How to restrict the image file to upload in employee profile page when fill exceeds 300 kb

Aditya02
Tera Guru

I've been assigned a task to restrict the upload of a profile cover image on the Employee Profile page in the Employee Center if the file size exceeds 300 KB. I'm using the Employee Profile Header widget to implement this functionality. If the file size exceeds the limit, an error message should appear indicating that the file size has been exceeded.

 

Writing a Business Rule on the table is not allowed for this requirement.

Could anyone suggest the best practices or approaches to validate the file size and meet this requirement?

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Aditya02 

you might have to handle this in widget?

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

Hi @Ankur Bawiskar ,

 

Is this needs widget level customization.? Is there any other way to do this.

@Aditya02 

where are you uploading it?

the profile cover photo will be added by admins then why not have BR?

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

Hi @Ankur Bawiskar 

 

The profile cover can be editable by individual user not only admin