Does workspace support pre-upload preview of the attachment?

Vijay Anusuri
Tera Contributor

Files such as PDFs, xlsx do have preview after attaching them on to the case.

Does files that are just selected can have a preview before uploading on the case. Can see it in the below image, the pdf is just selected and yet to attach on the case saying no preview available. Is it OOB functionality? If this can be achieved, any guidance please.

 

VijayAnusuri_0-1793648952041.png

 

2 REPLIES 2

Vishal Jaswal
Tera Sage

Hello @Vijay Anusuri 

I believe as of today only images have previews when uploading them as an attachment in SOW. My recommendation would be to create a HI Case and get it validated with ServiceNow.


sanjaygupta
Tera Guru

Hi,

The documentation describes the Upload a file window only as a place to review file details, such as editing the file name and adding an encryption module. It does not mention a PDF preview there, so pre-upload preview for PDFs is not documented as an out-of-the-box capability.

A similar “No preview available” message was reported in the Community when uploading a PDF to an HR case in the HR Agent Workspace. The suggested checks were the workspace version and whether the document viewer is enabled for PDFs, so the behavior may depend on your configuration. The checks below were suggested for similar cases and are not confirmed fixes for this specific window.

  1. If you use the HR Agent Workspace, confirm you are on version 4.2. The Community references KB2473292 for the preview button.
  2. Review KB1586988 on PDFs not displaying in the document viewer or workspace, and confirm PDF is enabled.
  3. In System Properties, open the Document Viewer section and check that com.snc.documentviewer.enable_document_viewer is true. A community expert suggested this for a related preview issue, although another user reported not finding that section.
  4. Check glide.attachment.extensions to confirm your file types are not restricted.
  5. Open an already attached PDF on the case and confirm it previews.

If attached PDFs preview correctly after upload but the dialog shows “No preview available”, this is most likely the standard behavior of that window. A pre-upload preview would require a custom change, which should be tested in a sub-production instance first.

Please share your release, the workspace and plugin in use, and whether the document viewer property exists on your instance.

Sources: