Welcome Guest, Not a member yet? Register   Sign In
Multiple File Uploads (A call to CI experts)
#3

[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 !


Messages In This Thread
Multiple File Uploads (A call to CI experts) - by El Forum - 10-21-2008, 09:24 AM
Multiple File Uploads (A call to CI experts) - by El Forum - 10-24-2008, 09:40 AM
Multiple File Uploads (A call to CI experts) - by El Forum - 10-24-2008, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB