Sys_attachment is getting downloaded instead of just opening up

ShivangiC
Tera Contributor

My requirement is to just open/view the sys_attachment type in ESC portal where the field is visible when user click on the attachment link it must open up aa popup or may be in new tab.

 

Existing it is getting download, when user clicks on the attachment link

3 REPLIES 3

KrishnaMohan
Giga Sage

Hi @ShivangiC 

It depends on where attachment is located in portal. Ex article attachments will open in new tab without download.
Where exactly you are adding attachment/field in portal.


If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan   

Ankur Bawiskar
Tera Patron
Tera Patron

@ShivangiC 

how are you showing/rendering that link in portal?

You can enable document viewer on the table where file is stored (example INC or CHG) and include this in the URL so that it shows preview and doesn't auto download

Enable Document Viewer 

URL will look like this -> so that file is viewed

/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id=feef3f17fb3b22500db5f8454eefdcb8

Note: Remember only limited file types can be previewed

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@ShivangiC 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader