![]() |
Uploads multiple files with validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Uploads multiple files with validation (/showthread.php?tid=76628) |
Uploads multiple files with validation - Juan Fajardo - 06-04-2020 I am a problem when i upload multiples files and i want validate all files. my view form: PHP Code: <form id="new-fotos-form"> my validation rules: PHP Code: public $foto = [ my controller for upload with the validation: PHP Code: public function run(){ If i try upload the files with no check validation this upload correctly. But if i check the validation ($this->MYvalidation->run($todo,'foto');) then always occurs the same error is_image who is the first validation rule. If the first validation rule is 'uploaded' or another, always occurs the first rule. In propiedadNewFotoUpload (the method for upload the files) check is_valid() ) can anyone help me?? Tanks RE: Uploads multiple files with validation - ale_vh - 11-03-2020 probaste sacandole los corchetes [] a "images"? RE: Uploads multiple files with validation - akahafizul - 03-12-2021 I got the same problem, did u get the solution ? RE: Uploads multiple files with validation - akahafizul - 03-12-2021 (06-04-2020, 03:01 AM)hi, i am not sure but just try using this one : Wrote: RE: Uploads multiple files with validation - InsiteFX - 03-12-2021 CodeIgniter 4 Single and Multiple Files Upload Examples |