yii2-file-upload-widget icon indicating copy to clipboard operation
yii2-file-upload-widget copied to clipboard

Error Messge from Model

Open Julian-B90 opened this issue 9 years ago • 3 comments

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.

Julian-B90 avatar Apr 14 '16 11:04 Julian-B90

if the file did not pass the validation returns an error return Json::encode([ 'files' => [[ 'error' => "Error message", ]] ]);

Ultmat5 avatar May 10 '16 17:05 Ultmat5

Thanks @Ultmat5

tonydspaniard avatar Sep 26 '16 08:09 tonydspaniard

Check here, not yet tested but will give you an idea: https://github.com/2amigos/yii2-file-upload-widget/tree/master/src/actions

tonydspaniard avatar Sep 27 '16 09:09 tonydspaniard