Re: Problem – this file may harm your computer

Home \ forums/reply \ Re: Problem – this file may harm your computer
#1925
Michael Gilkes
Keymaster

@jamesh. Have you tried the preview feature? It uses Google Docs Viewer to allow the user to preview pdf files.

Currently, the download feature downloads directly. This happens because the actual file location is not used in the link. With the actual file location, the browser chooses to show the file in a browser.

Now, you should be able to change this behavior by editing the following file: components/com_advlisting/views/download/tmpl/default.php on line 130, and change it to:

Basically, it is changing the Content-Disposition from “attachment” to “inline”. Now, I haven’t tested this, but it *should* work. Let me know.