|
Please help, i'm about to go insane with this problem.
I have a file management website, with upload capabilities, if the client wants to they can also download their files back if they need to, however when I click on the file it is meant to download but instead opens up to try and preview, now I have seen this on a couple sites and then you have to right click on the file and save target as, but how could I make it that even if the file clicked on is a PDF it does not try to preview, it just downloads.
I have seen most googled answers pointing towards mime types, but how do I fix that, in the php code on my page or in my server configuration or php.ini file. If so please try give as much detail as possible.
Thanks to all.
|