Multiple file upload inputs to one controller function |
Hello guys, I hope somebody can help - I would greatly appreciate.
I have multiple file upload inputs in a form in my view. I have managed to get the files to upload successfully, but I am writing out many versions of the same function for each file upload input (8 times). Could somebody show me how to merge all of those into one function, please. Many thanks in advance! File inputs from the view... I have 8 of these inputs : PHP Code: <input type="file" name="fileuploads[service][]" class=" form-control-xs" multiple > Functions in controller... I have only put two in for this example: PHP Code: if($this->request->getFileMultiple('fileuploads.service')) |
Welcome Guest, Not a member yet? Register Sign In |