Hello friends I have one problem about force_download function, I have an upload form on the website and I am using this function to download the data that I upload and it´s works
public function download($file)
{
force_download('./uploads/'.$file, NULL);
}
but you know that pdf,png,jpg files can be directly seen in the navegator if you want you needn´t to download it but if I use this function all files are downloaded, how I could to get it?
I try to use the direct link to my upload folder but it can be possible because I have a .htaccess file that denied the access to prevent that log in users only can download something.