Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter extended rules: file_size_max[size] / file_required
#1

(This post was last modified: 02-02-2018, 06:25 PM by minsk832.)

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!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB