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.
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?
Replies
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.
How big are these thumbnails? If it is PDFs with multiple pages are they readable without downloading the PDFs?
Yes dear.
You also have the ability to scroll through the multi page pdf.
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'); });
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.
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.
Hmm, I will try that.
Hi Jared,
You will find the option on the form.
See below screenshot.
@████████ I guess we are on different versions here what my options look like:
@████████ 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.
Hi Jared,
I've the option on version 10.3.1.635
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.
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.
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