Welcome Guest, Not a member yet? Register   Sign In
Validation Bug??
#2

Change this:

Code:
public $image_upload = [
        'file' => [
            'rules' => 'mime_in[file,image/jpg,image/jpeg,image/gif,image/png]',

to

PHP Code:
public $image_upload = [
'image' => [
'rules' => 'mine_in[image, ..... 

 Validation checks against the names in your form input (post/get values)  not your variables after it has been submitted. So if your form file input is named "image" which it looks like it is then you have to use "image" in your validation.
Reply


Messages In This Thread
Validation Bug?? - by 68thorby68 - 05-15-2020, 03:48 AM
RE: Validation Bug?? - by kick - 05-15-2020, 12:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB