![]() |
Multiple file Upload without third party codes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Multiple file Upload without third party codes (/showthread.php?tid=18) |
Multiple file Upload without third party codes - robinleathal - 10-22-2014 Every one knows although being very simple to use but very powerful framework, it is often hard to make multiple file upload work as desired with ease. There are some third party solutions but they are harder to implement or they are harder to tweak to make them work as desired. So I would like to request as a suggestion that there should be a multiupload class that extends the upload class so that it uses multiupload class for multiple files and fall back to upload class automatically for single file. Or it could be upload class handle both single or multiple class. I would like to suggest plupload be integrated for this. RE: Multiple file Upload without third party codes - Ablankzin - 10-24-2014 I Agree. But i suggest a simple implementation and a advanced with plupload. RE: Multiple file Upload without third party codes - Thyrosis - 10-24-2014 Although not essential, it would make life a lot easier =) RE: Multiple file Upload without third party codes - orionstar - 10-26-2014 If I remember correctly you can easily use CI's file uploader to work with multiple files, see below: PHP Code: $this->load->library('upload', $config); And on the upload field you should add an extra attribute multiple="multiple". UPDATE: If you want to enable the upload of a single file you should check $_FILES['upload_field_name']['name'] is_array, if not then you should go the usual way. RE: Multiple file Upload without third party codes - robinleathal - 10-28-2014 (10-26-2014, 08:01 PM)orionstar Wrote: If I remember correctly you can easily use CI's file uploader to work with multiple files, see below: thank you sharing your codes. Plupload is great tool and i want it work with codeigniter easily. RE: Multiple file Upload without third party codes - direx - 11-06-2014 As for me framework should framework. In CI, is not no any pattern generator or something else like that. This concern javascript (front-end) development . |