Error: Attachment refused because file type not allowed or type does not match file contents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 12:27 AM
Hi Community,
I hope you could help me out with the following issue: I would like to upload a (.xls file type) to the system, but I get the following error message:
Attachment refused because file type not allowed or type does not match file contents.
-> My system property glide.attachment.extensions is set to blank to allow all type of extensions. But now I don't know why .xls are unable to be attached. Please help.
- Labels:
-
Scripting and Coding
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 12:42 AM
Hi Anil,
If it's not the file type problem, it may be a problem with file mismatch between the file content and file extension.
Can the file be opened by Excel 97? Excel file currently is in .xlsx format and not .xls. If not using Excel 97, try saving the file as xlsx and retry attaching the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 12:43 AM
Hi,
to which record you are adding it?
Is this happening throughout the instance or only at particular form?
check this out
Error message received when attempting to add attachment to a record on an instance
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader