Attachment loses its file extension when length of the filename exceeds the limit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2014 08:41 AM
Is there a way to keep the file extension when a user puts an attachment with a filename that exceeds the limit set in ServiceNow?
I know we can change the maximum lenght of the filename in the sys_attachment table, but that's not what I want. I would like to cut the filename to the default 100 caracters limit, but to keep its file extension. This way, although the filename has been truncated, our users will still be able to open it.
Thanks!
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2015 12:56 PM
Following thread. We have also opened an HI ticket for the exact same reason.
Will keep you informed if we hear anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2015 01:39 PM
Investigating with HI, we have found the problem exists only when using Microsoft Internet Explorer as the browser. If you use Google Chrome on Windows or a Mac computer, then you'll be able to see the file's extension.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2015 12:27 PM
So you mean that even if we change the file_name max length from 100, the file extension still gets truncated in IE, and firefox?
Is it a known problem and SN confirmed it ?
THanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 06:28 AM
Hi Ravali,
If you increase the file_name max length from 100 to 250, then the files extensions joined to your incidents or task will be kept for all the files where the filename is less than 250 caracters. It will still get cut for filename exceeding 250 caracters.
It's a know problem for ServiceNow with Microsoft Internet Explorer, but I think it works fine with Firefox.
Hope it helps you!
Good day!
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 09:34 AM
Thanks Steve. Yes I did increase the max length to 250 for file_name. But still when I attach a file with more than 100 characters, it is asking for which program shall it be using to open it as opposed to system auto detecting the file type.
How can we fix that?
Thanks,