You are viewing limited content. For full access, please sign in.

Question

Question

Forms File Upload - Is there a way to set the link to open the file in a browser window or previewer instead of downloading the file?

asked on March 5, 2019

One of the things we are trying to accomplish in our offices is to reduce the number of copies of documents.  When you click the link in Forms for a file uploaded with the File Uploader, it downloads the file to the user's computer.  If this form routes to 6 different people who all need to see this attachment to make a decision on whether or not they approve, there are now 6 copies of this form on 6 different computers.  If an attachment contains confidential information, having many copies of the file on different computers creates additional risk of that information possibly being viewed or sent to persons not authorized to view that information.  Also, it's just more convenient for user's to have the file open in a browser tab or previewer than to have to have it download and now open their downloads folder to open the file to view.

0 0

Replies

replied on March 5, 2019

Hi Jared,

 

What I normally do is check the option "Show uploaded images" in the File Upload for the next assigned user task .

And for just making the Form more readable in case the submitter upload more than 1 attachment, I put this in the "File Upload" in a section and allow the user to expand or collapse this section.

 

Hope this helps you!
Thanks.

Mahesh.

1 0
replied on March 6, 2019

How big are these thumbnails?  If it is PDFs with multiple pages are they readable without downloading the PDFs?

0 0
replied on March 6, 2019 Show version history

Yes dear. 

You also have the ability to scroll through the multi page pdf. 

0 0
replied on March 6, 2019

If for some reason the thumbnails view doesn't work out for you, you can also remove the "download" attribute from the link.

As a quick example, the following will update all the existing file links as soon as the form loads.

$(document).ready(function(){
  $('.file td:first-of-type a').removeAttr('download');
});
0 0
replied on March 6, 2019

For @████████ : I was looking for where you found the "Show uploaded images" option since I could not find where that is.  I looked in the options for the Uploader field and don't seem to have that option.  Am I looking in the correct place?  To note we are on Laserfiche 10.3.

For @████████ : Unfortunately as the form routes to different people they will need an option to look at the uploaded file.  If we are not able to display the file in the form or link directly to where it is save in the repository, allowing the user to download the file is our only option.

0 0
replied on March 6, 2019

Jared,

Removing the "download" attribute doesn't prevent them from viewing the file. It causes it to open in a new browser tab instead of downloading it immediately.

0 0
replied on March 6, 2019

Hmm, I will try that.

0 0
replied on March 6, 2019

Hi Jared,

You will find the option on the form.

See below screenshot.

 

 

0 0
replied on March 7, 2019 Show version history

@████████ I guess we are on different versions here what my options look like:

0 0
replied on March 15, 2019

@████████ So I added the jQuery script to remove the download attribute.  When I click the file, a new tab opens but then closes almost instantly and the file is still downloaded.

0 0
replied on March 19, 2019

Hi Jared,

I've the option on version 10.3.1.635

0 0
replied on March 19, 2019

Ahhhh nice.  We are on Laserfiche Forms Professional Version 10.2.1.157 but will be upgrading to 10.4 in the somewhat near future.  I will keep this in mind and look for it then.

0 0
replied on March 19, 2019

Jared,

The immediate download behavior might be a result of browser settings, but it is really hard to say. I have this exact thing working, but between different users and browsers any number of things can cause different behavior.

0 0
replied on September 6, 2021

Hello Everyone, We are looking File Upload Preview option for MS Office documents. Anyone tried this using custom scripting or tools, please do share. 
 

Thank you in advance.

Regards

Chandresh

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.