yii2-file-upload-widget
yii2-file-upload-widget copied to clipboard
Error Messge from Model
How can i show the Error message from my model?
I have an model that save the path string from the file and that model don´t show the errors.
if the file did not pass the validation returns an error return Json::encode([ 'files' => [[ 'error' => "Error message", ]] ]);
Thanks @Ultmat5
Check here, not yet tested but will give you an idea: https://github.com/2amigos/yii2-file-upload-widget/tree/master/src/actions