Display image file name for attachment in activity log instead of image

snuser10
Kilo Expert

Is it possible to minimize image attachment in activity log instead of having the image take up lot of space in activity log.

10 REPLIES 10

I don't know that there is another way to see when an attachment is added.

Matthew Glenn
Kilo Sage

One thing you could do is change the "Content Type" within the sys_attachment table to text/plain. This tricks the system into treating as a text file, which in turn displays only the name of the file with a link for download. 

One immediate drawback here is that this also impacts the Portal, so you'll lose the thumbnail view for end users.  Downloading the image still works.

 

I personally wouldn't do this, but if you're interested in testing it for yourself (and please do so thoroughly), create a before insert business rule on sys_attachment with the following parameters (adjust Table name accordingly):

Conditions

find_real_file.png

Actions

find_real_file.png

 

 

 

snuser10
Kilo Expert

I'm testing that. would you mind sharing where that tumbnail view changes post activating business rule?

Sure.

In the Service Portal, assuming you're still using the OOB Ticket Conversations and Attachments widgets, this is what your activity log will look like

find_real_file.png

 

And the attachments widget 

find_real_file.png

 

Within the ITIL view:

find_real_file.png

snuser10
Kilo Expert

anyone else have another solution to get a timestamp whenever an attachment is added to incident form?