Welcome Guest, Not a member yet? Register   Sign In
upload multiple codeigniter

Morning Developers.

Has anyone had to do multiple Upload with codeigniter? using the 'multiple' attribute in the input file type I can select more than one image file, but when I submit the form the codeigniter identifies a single image:

Controller :
$config['upload_path'] = FCPATH . '/assets/imagens/foto_galeria/';
$config['allowed_types'] = 'gif|jpg|png';


echo '<div class="form-group">';
echo form_label('Imagem', 'imagem');
echo form_upload(array('name' => 'imagem', 'class' => 'form-control form-file' , 'multiple'=>true), set_value('imagem'));
echo '</div>';

Does anyone know how to make codeigniter read more than one image on the same input file?

It was only designed for single file upload. I just use the traditional form methods and directly use the $_FILES superglobal and don't use CI's methods where I need it.

There are other answers if you search the forum.

Example here http://www.webtuts.in/codeigniter-multip...es-upload/

Theme © iAndrew 2016 - Forum software by © MyBB