Plugin to open attachment in browser rather downloading it first.

Deepali Rattan
Tera Contributor

Hi

Can anyone help me with the plugin that we have to open attachment in browser rather downloading it first.

 We do have it in paris release. There must be some way.

Thanks

1 ACCEPTED SOLUTION

@Deepali Rattan 

Document viewer is already installed in my instance.

In your instance as well it is installed as per your screenshot

Activate Document Viewer for the tables where you want to use it.

  1. Navigate to System DefinitionDictionary.
  2. Open the table Collection record to update.
  3. Enter use_document_viewer=true in the Attribute field.

find_real_file.png

Output: Excel file data shown

find_real_file.png

Regards
Ankur

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

View solution in original post

16 REPLIES 16

Hello Ankur,

 

This functionality what you have shown is outstanding , but do we have the same functionality on portal as well??
I want to use is it for knowledge Articles.

Please find below screenshot.


peterdelf
Giga Expert

Check these global system properties -

glide.ui.attachment.force_download_all_mime_types

  • Forces download of all attachment files.

glide.ui.attachment.download_mime_types

  • A list of comma separated attachment mime types that do not render inline in the browser. This will prevent cross site scripting attacks. For example, text/html will force html files to be downloaded to the client as attachments rather than viewed inline in the browser.

glide.ui.attachment.admin_scs_download_mime_types

  • For admin only uploads (accessed via upload.do), a list of comma separated attachment mime types that do not render inline in the browser. This will prevent cross site scripting attacks. For example, text/html will force html files to be downloaded to the client as attachments rather than viewed inline in the browser. This setting is only used when accessing static content files via the "/scs/" link provided by an admin-only uploaded file.

glide.ui.attachment.tables_ignore_force_download