Preview button forces download for PDF

Phoca Download - download manager
Alex_Kite
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Sep 2014, 15:17

Preview button forces download for PDF

Post by Alex_Kite »

Good evening everybody,

Please help to fix the following issue:
When I press the "Preview" button for PDF file, the download starts instead of preview - both in "Modal box" and "Standard Popup Window" modes.

I tested in different browsers and even on tablet - it works all the same.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Preview button forces download for PDF

Post by Jan »

Hi, do you get the same problem when you use another browser or browsers?

Jan
If you find Phoca extensions useful, please support the project
Alex_Kite
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Sep 2014, 15:17

Re: Preview button forces download for PDF

Post by Alex_Kite »

Hi Jan,

Yes, as I told before, I tested in different browsers and even on tablet - it works all the same.
In fact, for my application I need only to preview these PDF files online in a separate window. I don't need the Download button at all.

2)**Just find a bug when adding new file to download: If I didn't fill the required "Filename" field and press "Save", all other info is lost when the warning is displayed.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Preview button forces download for PDF

Post by Jan »

Hi,

- the download button needs to be disabled directly in the code - customized

2) hmm, testing now, get no such problem, which version you exactly use?

Jan
If you find Phoca extensions useful, please support the project
Alex_Kite
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Sep 2014, 15:17

Re: Preview button forces download for PDF

Post by Alex_Kite »

Hi Jan,

Download instead of Preview still persists - please help to fix!
Please take a look at it: http://download-demo.cloudaccess.net/in ... view-error
I put a video 1-Download-instead-of-Preview.wmv about this issue in /images folder of the above site - will send you the pwd by private message.

2) Concerning erasing all input after warning message - please see 2-Empty-fiields-after-warning.wmv in the same directory.
I'm using Joomla 3.3.3 and com_phocadownload_v3.0.5.zip.

Thank you in advance!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Preview button forces download for PDF

Post by Jan »

Hi, I see:

1) this seems like you have some specific program on your PC :idea: I have tested it on different PCs and mobiles (your site) and get standard preview of the file :idea:

2) yes, this is right behaviour - if you set "save and new" - it will say you that the first file item could not be saved because of missing parameter but then it is redirected to new file item - so you should use "save" only button :idea:

Jan
If you find Phoca extensions useful, please support the project
Alex_Kite
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Sep 2014, 15:17

Re: Preview button forces download for PDF

Post by Alex_Kite »

Hi Jan,

1) The trouble is the same on all computers at my work; Will try to fix with my sysadmin :x
Strange that the same computers can display such kind of preview from other, non-Joomla sites.

2) Now I understand the case, thank you for your answer!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Preview button forces download for PDF

Post by Jan »

Hmm, tested today with Firefox, Chrome and Opera, see image:

Image

Really no problem, no idea what can be wrong there :idea:

Jan
If you find Phoca extensions useful, please support the project
Alex_Kite
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Sep 2014, 15:17

Re: Preview button forces download for PDF

Post by Alex_Kite »

Hi Jan,

I will explore the issue on work computers with sysadmin and will report you if we will find the bug.

Alex
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Preview button forces download for PDF

Post by Jan »

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