file extention - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: file extention (/showthread.php?tid=38961) |
file extention - El Forum - 02-24-2011 [eluser]randori21[/eluser] Why when i upload file i can't see file extention on my file. Please help for this case. file extention - El Forum - 02-24-2011 [eluser]beaufrusetta[/eluser] Going to need some more information. Are you using the File Upload class? (http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html) Posting up some code from your app will help us in determining the issue. :-) file extention - El Forum - 02-24-2011 [eluser]InsiteFX[/eluser] Also are you running on local system or live web site? InsiteFX file extention - El Forum - 02-25-2011 [eluser]randori21[/eluser] [quote author="beaufrusetta" date="1298595767"]Going to need some more information. Are you using the File Upload class? (http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html) Posting up some code from your app will help us in determining the issue. :-)[/quote] i have used file upload class. this my code to upload $this->load->helper('form'); //setting for upload $config['upload_path'] = './uploads/'; $config['file_name'] = $this->input->post('nama_gbr'); $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '300'; $config['max_width'] = '1024'; $config['max_height'] = '768'; $this->load->library('upload',$config); because, i need file extention to make list.js on tinymce. And i use codeigniter 1.7.2 version. When i try to make view like this: [file_name] => mypic [file_type] => [file_path] => /path/to/your/upload/ file extention - El Forum - 02-25-2011 [eluser]randori21[/eluser] [quote author="InsiteFX" date="1298603350"]Also are you running on local system or live web site? InsiteFX[/quote] First, I running my software on local system. Yesterday, i upload on live web, but nothing changed. How about zip format? Any secret about this. Because I can't upload this kind extention. file extention - El Forum - 02-25-2011 [eluser]InsiteFX[/eluser] Any file that you upload you need to specify the allowed type! Code: $config['allowed_types'] = 'gif|jpg|png|zip'; You can find these allowed types in application/config/mimes.php InsiteFX file extention - El Forum - 02-26-2011 [eluser]randori21[/eluser] Thank's a lot for all. I can do all successfully |