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

Question

Question

Weblink Android electronic file view

asked on October 14, 2016 Show version history

Has anyone experienced issues opening a pdf via Weblink on an Android phone?  When we open it, it downloads an file called Electronic.aspx instead of the pdf file.  The same file opens fine on a desktop and iphone.

 

Thanks,

0 0

Answer

SELECTED ANSWER
replied on October 18, 2016

I ran into this with one of our customers today. I believe this actually has to do with the mime-type for the documents stored in Laserfiche. When you store an electronic document, Laserfiche also stores the mime-type, which is a kind of media type identifier that is used to determine the contents of a file and what application should be used to open it. The standard mime-type for a PDF is "application/pdf" although it could be something different depending on how your PDF was generated and imported. The documents causing a problem at the customer's site were set to a mime type of "application/octet-stream" which is a generic value for arbitrary binary data files.

What happens when you browse to the document in Weblink is that it passes this mime-type into the Content-Type response header when sending the document to the browser for download. Android browsers seem to be unsure of what to do with the file when it has this generic Content-Type header, and so it seems to ignore the recommended file name in the Content-Dispositrion header and does it's own thing. The file that gets downloaded (in this case "ElectronicFile.aspx") is actually the real PDF file, and if you change the file extension, you can open it and view it.

You can view the mime-type for documents in your repository by turning the column on in your repository browser (it is available in both the desktop client and the web products). Unfortunately, there is no good way to change this, unless you want to attempt to change it directly in the SQL tables for the repository. The longer term solution would be to try to identify what step in your process of creating/importing PDFs is the cause of the generic mime-type.

0 0
replied on October 18, 2016

Thanks for the information, Scott.  These files are send into Laserfiche from a third-party software, CityView.  We'll look into whether or not any changes can be made to correct the mime-type for these files.

 

I appreciate the information!

0 0
replied on June 17, 2022

We are having the same issue but only on one repository. One repository does things just fine and downloads with the correct name, the other downloads with names like download (5)   and    electronic file (2)  etc. Very odd.

0 0
replied on June 20, 2022

And we have now determined that these are all files that were in the repository before we upgraded. Current files do not do this.

 

0 0

Replies

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

Sign in to reply to this post.