[eluser]Dready[/eluser]
Hello,
If I were in your shoes (cool expression I read this day on another forum thread) I will take back the upload class and improve it to be able :
1/ to manage file arrays : things like :
Code:
<form action="upload" enctype="multipart/form-data" method="post">
<input type="file" name="featured_image[]">
<input type="file" name="featured_image[]">
<input type="file" name="featured_image[]">
<input type="file" name="featured_image[]">
<input type="submit" value="Upload Images">
</form>
2/ to accept configuration data per file : like :
Code:
<form action="upload" enctype="multipart/form-data" method="post">
<input type="file" name="somefile">
<input type="file" name="someotherfile">
<input type="submit" value="Upload all this">
</form>
and
Code:
//in controller
$this->upload->do_upload('somefile',$config_array1);
$this->upload->do_upload('someotherfile',$config_array2);
At last, I'll post this in "Ignited code" forum where nice people would enhance it :-) Just do it !