PDF stop to show

Phoca Download - download manager
dadoen
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 May 2012, 17:27

Re: PDF stop to show

Post by dadoen »

Jan wrote:Hi, try to change the filename (remove the spaces from the name) and try to add it as another new file in Phoca Download. Does it work in Phoca Download component? (Can you paste me a link to phoca download component category view where this new file will be listed)?

Jan
I was removed space, problem is the same. And try from Phoca Download Component , also problem again.

http://www.openwaterswim-serbia.org.rs/ ... /kalendari

Info from hosting support ( maybe help ):

Not apropriate Content-Type, why? dont no.

always open text/html, instead application/pdf
unhbuzzard
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Jan 2016, 18:41

Re: PDF stop to show

Post by unhbuzzard »

Any update on this one?
smithrik
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 Jan 2016, 09:30

Re: PDF stop to show

Post by smithrik »

Same Problem Here . can anyone tell us solution
unhbuzzard
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Jan 2016, 18:41

Re: PDF stop to show

Post by unhbuzzard »

So I don't think this issue is specific to Phoca Download- I installed another file management/download component and that component had the same issue (no offense Phoca people!). This issue started last week when I had two files infected by malware- route.php & component.php. I replaced those files and the site began working (before it was just a blank white homepage but the backend was accessible). That being said, if anyone has any ideas or where I can find the php files that allow the pdf files to render I'd gladly send you a beer. If I put in a direct/absolute link to a pdf file then it pops up in a new window successfully, so the issue has to do with whatever is generating the pdf... I think.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF stop to show

Post by Jan »

Hi, the problem is, Phoca Download does not render PDF. See the difference:

- Phoca PDF component tries to translate the content to PDF and it dynamically creates PDF on the site (the content is taken from article)
- Phoca Download does not render PDF, it just find the PDF file on the server and assign it to download - then the download happens between server and the user's browser - Phoca Download only set header of the server response, so the PDF is not displayed in browser but downloaded - it does not render the PDF, it just add information about some current existing PDF to the browser and then it is downloaded :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply