Where can I find the code for Employee Center attachment error message?

Ross Drew
Tera Contributor

In the employee center when attaching a file type that is not permitted, I am getting this message..."[insert file name] failed to upload because the file type is not permitted, or the file type does not match the file content." We have a requirement to change the OOB text in this error message, however, I cannot locate the code for this message. I checked the UI page titled 'Attachment' and it was not found in it. Any idea where I should look for the code that produces this message?

 

RossDrew_0-1749664183337.png

 

2 REPLIES 2

phgdet
Mega Sage

Hi @Ross Drew, can you locate sys_ui_message table and search for file.mime_type.mismatch?
Screenshot 2025-06-12 at 10.53.13.png

Ankur Bawiskar
Tera Patron
Tera Patron

@Ross Drew 

you can search that in UI Messages table as suggested by @phgdet 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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