How to compress large attachment files when attaching into ticket?

keerthilatha
Tera Expert

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

2 REPLIES 2

Inactive_Use945
Kilo Expert

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.


Kranthi Kumar3
Kilo Contributor

Hi Keerthi,



can you check below property might be helpfull



com.glide.attachment.max_size



Regards,


kk