CodeIgniter extended rules: file_size_max[size] / file_required |
Hello,
I was wondering that CodeIgniter actually doesn't have validation rules for file upload handling. So there might be no clean way to always use the form_error() validation helper. Is there a reason I don't know? Some people use if (empty($_FILES... prechecks and some people check if there is $this->upload->display_errors() error content manually. I found also this GitHub project for CodeIgniter 3.x extended rules - wouldn't it be a great feature to include this in CI_Form_validation so that users can use file_size_max[size] / file_required etc in validation process? Thanks! |
Messages In This Thread |
CodeIgniter extended rules: file_size_max[size] / file_required - by minsk832 - 02-01-2018, 09:22 PM
|