rules multiple uploads |
Hello !
I am going to need some more clarifications :-) Your original question is "How to specify rules for multiple uploads ?". The page I gave you is describing exactly this: 1/ Getting ALL files: $imagefile = $this->request->getFiles() 2/ Looping on files: foreach($imagefile['images'] as $img) 3/ Validating and "saving" the file: if ($img->isValid() && ! $img->hasMoved()) "isValid" refers to this: https://codeigniter4.github.io/userguide...ify-a-file And you could apply your own custom rules. Juste check whatever you need to check on "$img". So... What do you mean when you say "with the rest of the data - no". Which data ? A file ? Do you have code to show in order to help me understand ? Thank you ;-) |
Welcome Guest, Not a member yet? Register Sign In |