Answer the question
In order to leave comments, you need to log in
When validating a photo, skipOnEmpty always displays an error, how to solve it?
There is a rule in the model
['userimg', 'image', 'extensions' => 'png,jpg', 'skipOnEmpty'=>false, 'maxSize'=>5000000, 'minSize'=>100000, 'uploadRequired'=>Yii::t('order', 'noImage')]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question