Image force_download problem |
[eluser]veledrom[/eluser]
Hi, I can upload and download the image but when I open downloaded image, nothing shows up. It says "no preview". However, I can access the image through browser by typing the path. Code: public function do_downloadfile() Upload folder is under main root. http://localhost/CI/upload/12743552b2871...5dd6fe.JPG Is file being corrupted when downloaded? Neither fopen() nor file_get_contest() work... Thanks
[eluser]toopay[/eluser]
Code: force_download($name, $exist);
[eluser]veledrom[/eluser]
Sorry I was testing with many possibilities. It is actually Code: force_download($name, $data);
[eluser]veledrom[/eluser]
I added my controller and view file for you to have a better idea. Please help me I am desperate to do this. Upload and download successful but the image I download later on is corrupted I think. Nothing shows up. Thanks Note: Just create a folder called "upload" in main root of CI. |
Welcome Guest, Not a member yet? Register Sign In |