By Mark on Sunday, 22 June 2014
Posted in Technical Issues
Likes 0
Views 421
Votes 0
Hi

The client that I'm creating a site for uses the file manager area of the groups section for PDF downloads

He wants the PDF's to open in the browser for preview rather than a forced download which they are at the moment

Is there anyway I can change that in the code so they open in the browser?

Many thanks
Hello Mark,

It's not possible out of the box because there's no real way to determine if the file has a mime of pdf or not during upload but I have come up with a quick patch so that clicking on preview will preview the pdf on a new tab instead.

Download the attached file and upload it into /administrator/components/com_easyblog/tables/
·
Monday, 23 June 2014 01:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

Thank you so much for the quick reply - really appreciate it!

Can I just check that you mean com_easysocial and not com_easyblog though in the administrator/components folder

Regards

Mark
·
Monday, 23 June 2014 01:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Ops, sorry yes it's com_easysocial , my typo
·
Monday, 23 June 2014 01:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much for your help - that works perfectly! - much appreciated

Regards

Mark
·
Monday, 23 June 2014 04:47
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Mark
·
Monday, 23 June 2014 09:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post