How to compress large attachment files when attaching into ticket?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2017 03:51 AM
HI Team,
Is there any option/way like compressing the attachment files, when attaching into to ticket. Please let me know if we have any such a way in service now/outside scripting?
Thanks & Regards,
Prasanna Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2017 03:59 AM
Hi PRasanna,
This might not be a very good idea to do compressions at browser level. This would mean a Compressing Tool such as 7ZIP or WinZIP functionality written in Javscript which seems very performance exhaustive for a JS.
If you still want to do it then possibly use JSZip like scripts. Mind you dont expect a good load time.
The transaction should have to look like. You upload attachment file, the attachment stays with script, Compression done, the Compressed file is passed from script to Attachment action in ServiceNow.
Not very easy to do and neither recommended. Instead restrict attachment size or increase attachment size if required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2017 04:10 AM
Hi Keerthi,
can you check below property might be helpfull
com.glide.attachment.max_size
Regards,
kk