Validating multiple inputs (File Upload Library) |
How can I validate two inputs using the CodeIgniter's File Upload Library?
I have two inputs Code: <input type="file" name="cover"> I did try this one PHP Code: if( ! $this->upload->do_upload('cover') || ! $this->upload->do_upload('images[]') ) {
I recommend taking a look at Avenirer's solution:
http://avenir.ro/my_upload-extension-all...e-uploads/
Basic looping to achieve multiple uploads might look something like this:
PHP Code: $this->load->library('upload'); |
Welcome Guest, Not a member yet? Register Sign In |