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

Hi @Ankur Bawiskar  

I am able to achieve this when i click on view it opens up in the browser.

But when i click on image(Here issue.png). it then again downloads first and then i can open it.

find_real_file.png

Hi,

that is default behavior.

To view the file/document/attachment you need to click View

This is the only way

Regards
Ankur

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

Thanks @Ankur Bawiskar 

Hi Ankur 

Can we achieve this via any script 

that attachment should automatically open in that form like a field value

For viewing the document we have to click on view button but my requirement is how that attachment is automatically opened in that form like a field