⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Multiple Upload



mavershim
  • profile picture
  • Member

Posted 22 May 2012 - 08:38 AM

hi,

is there a way to upload multiple files.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 May 2012 - 22:24 PM

No yet. It is a future feature.

avambro
  • profile picture
  • Member

Posted 13 May 2013 - 21:53 PM

 I need a solutions like that :S 


likhon3k
  • profile picture
  • Member

Posted 14 May 2013 - 03:47 AM

hi,

is there a way to upload multiple files.

 

You can solve your problem by the following way. this is one kind of solution.

 

1) Controller use this:

 

           $crud->set_field_upload('upload_file_url','assets/uploads/photograph');
            $crud->set_field_upload('upload_file_url2','assets/uploads/biodata');

 

 

2) Create directory: 'biodata' and 'photograph' at 'assets/uploads' location

 

3) create two field in your table:

 

upload_file_url = varchar (255)

upload_file_url2=varchar(255)

 

4. Now run this.


davidoster
  • profile picture
  • Member

Posted 14 May 2013 - 05:12 AM

[member=likhon3k] thanks for the post.

It is a solution but you can't really call it a solution for multiple upload can you?


victor
  • profile picture
  • Member

Posted 16 May 2013 - 16:05 PM

ok. tomorrow I'll try to make this. I promised a long time ago. but I haven't much time for that, it'll be a short solution.

bianconeri
  • profile picture
  • Member

Posted 17 May 2013 - 19:41 PM

Guys,
 
I want upload two images: normal and thumb.
 
My controller
 
$crud->set_table('table')
->columns('my_col')
->set_field_upload('file_url, 'exemple')
->callback_after_upload(array($this, 'upload'));
 
function upload($uploader_response, $field_info) {
$this->load->library('image_moo');
$file_uploaded = $field_info->upload_path . '/' . $uploader_response[0]->name;
$this->image_moo->load($file_uploaded)->resize(800, 600)->save($file_uploaded, true);
return true;
}
 
Now, how do I do to upload image thumb.
The field thumb can't show at form.

bianconeri
  • profile picture
  • Member

Posted 20 May 2013 - 23:03 PM

I resolved my problem with 



$this->image_moo->load($file_uploaded)->resize(200, 200)->save($file_uploaded, true);
$this->image_moo->load($file_uploaded)->resize_crop(60, 40)->save_pa('', '_thumb');

But, when i remove my image,, the thumb continue at directory. How I delete the thumb?