Page 1 of 3
Preview button forces download for PDF
Posted: 09 Sep 2014, 16:19
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.
Re: Preview button forces download for PDF
Posted: 09 Sep 2014, 21:53
by Jan
Hi, do you get the same problem when you use another browser or browsers?
Jan
Re: Preview button forces download for PDF
Posted: 10 Sep 2014, 10:21
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.
Re: Preview button forces download for PDF
Posted: 10 Sep 2014, 21:51
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
Re: Preview button forces download for PDF
Posted: 11 Sep 2014, 11:19
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!
Re: Preview button forces download for PDF
Posted: 15 Sep 2014, 14:37
by Jan
Hi, I see:
1) this seems like you have some specific program on your PC

I have tested it on different PCs and mobiles (your site) and get standard preview of the file
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
Jan
Re: Preview button forces download for PDF
Posted: 15 Sep 2014, 15:05
by Alex_Kite
Hi Jan,
1) The trouble is the same on all computers at my work; Will try to fix with my sysadmin
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!
Re: Preview button forces download for PDF
Posted: 15 Sep 2014, 17:43
by Jan
Hmm, tested today with Firefox, Chrome and Opera, see image:
Really no problem, no idea what can be wrong there
Jan
Re: Preview button forces download for PDF
Posted: 16 Sep 2014, 12:08
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
Re: Preview button forces download for PDF
Posted: 16 Sep 2014, 16:00
by Jan
Ok