We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Based on documentation, it shown :
$this->validate([ 'avatar' => 'uploaded[avatar]|max_size[avatar,1024]' ]);
It will get the following error:
CodeIgniter\Validation\Exceptions\ValidationException: up is not a valid rule.
The current working solution is:
$this->validate([ 'avatar' => [ 'uploaded[avatar]', 'max_size[avatar,1024]', ], ]);
is it the documentation issue or the Validation bug ?
The text was updated successfully, but these errors were encountered:
Checking the Validation::splitRules(), it got the following:
Validation::splitRules()
/Users/samsonasik/www/CodeIgniter4/system/Validation/Validation.php:738: array (size=5) 0 => string 'up' (length=2) 1 => string 'oa' (length=2) 2 => string 'ed' (length=2) 3 => string 'avatar]' (length=7) 4 => string 'max_size[avatar,1024]' (length=21)
The issue seems on it.
Sorry, something went wrong.
regex_match
d57a465
Thank you @samsonasik I have been on this for more thank three days.
No branches or pull requests
Based on documentation, it shown :
It will get the following error:
The current working solution is:
is it the documentation issue or the Validation bug ?
The text was updated successfully, but these errors were encountered: