Hi Jan
I wonder if it is possible to achieve the following:
Without using the Preview feature, I would like to make it such that when the visitor clicks the Download button on the Phoca Download component AND/OR when a visitor clicks on the link in the PhocaDownload File Module, that instead of the document downloading to the user's device and then having to be opened by the user, instead, for the file to open automatically in the user browser in full screen mode?
This is ideal for PDF files but I realise there may be potential limitations for other file types hopeful that the destination browser type will handle file types which it cannot display.
The problem that I have is that my customer has had visitors who complain that when they click to download a file, it does download but then they have to find the download in their Downloads folder and open it to view the content.
The customer does not wish to use the preview feature at all.
Is the way to achieve this objective, perhaps using overrides?
Chris
Download and Show in Browser
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download and Show in Browser
Hi, mostly the handling of documents (PDF e.g.) is set by user's operating system or browser.
The download component just make the file ready for download. So if you need, the file will be opened in browser, just add the direct link to the file. When user clicks on it, it will be opened in user's browser (but of course only by users who have set it in browser) - the PDF:
- can be download
- can be opened directly in the browser
- can be downloaded and opened in external program like adobe reader is - but all this is managed by the OS or browser, the component can only force browser to download the file instead of preview.
So mostly you cannot somehow influence it by the server, you can try to force download instead of viewing but this is all, you cannot specify which program will open the PDF, etc., this is set in user's operating system and/or browser
Jan
The download component just make the file ready for download. So if you need, the file will be opened in browser, just add the direct link to the file. When user clicks on it, it will be opened in user's browser (but of course only by users who have set it in browser) - the PDF:
- can be download
- can be opened directly in the browser
- can be downloaded and opened in external program like adobe reader is - but all this is managed by the OS or browser, the component can only force browser to download the file instead of preview.
So mostly you cannot somehow influence it by the server, you can try to force download instead of viewing but this is all, you cannot specify which program will open the PDF, etc., this is set in user's operating system and/or browser

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