Shared files not working with android tablet

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/10/2014 8:29:14 AM
Gravatar
Total Posts 55

Shared files not working with android tablet

I have lots of PDF documents on my site that i make available to casual visitors - you can see them at http://www.odquiz.org.uk/quizzes.aspx

They work perfectly well when used with PC's but I have discovered recently that I cannot open the documents using my Android tablet or phone.  If I click on one of the files it opens a new browser window, but the file never opened and is not downloaded.  I can save the file by holding down the link and then choosing "save link" from the popup menu.

Is there anything I can do to cure this?  If I put the file in my web storage and set up a link to the file, either as a hyperlink or using the List/Links feature, it works perfectly, but I would prefer to used the shared files feature to allow me to use folders etc.

 

6/10/2014 11:10:04 AM
Gravatar
Total Posts 18444

Re: Shared files not working with android tablet

Hi,

By default the shared files feature tries to treat pdf as not an attachment because most web browsers can open them directly whereas all other files are treated as attachments (with a response header). With attachments the user is prompted to save the file.

To make Shared Files add the attachment header for pdf download you can put this in user.config and then touch web.config

<add key="SharedFiles:TreatPdfAsAttachment" value="true"/>

which might solve the problem on Android but will also change the behavior for all web browsers not just android.

Hope that helps,

Joe

6/12/2014 9:41:37 AM
Gravatar
Total Posts 55

Re: Shared files not working with android tablet

Thanks, I'll give it a try

You must sign in to post in the forums. This thread is closed to new posts.