-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
Can't get plugin validation errors #810
Comments
If it is a plugin validation error it should be displayed. It seems you are getting an error in your server validation (correct me if I am wrong)... and for that you need to pass the relevant error message in your ajax response to be displayed by the plugin, |
When my image is too big or the width or height are too small, nothing is sent, my ajax url get Null and at this point I don't know if I can get something else from the plugin. |
As I mentioned, if you are using plugin's maxFileSize validation capability then on error it will display validation message. It will NOT send any data for upload to your ajax URL by default. The validation error is thrown at the file read stage itself. Refer here. The problem is in your JS code whereby, you are auto triggering |
Okay, thank you, it's working fine with getFileStack ;) |
Hello,
I'm sending my files through ajax but when the upload fails (as with height too small) I don't get the real error message, but I get an error from my ajax url, but this one makes no sense since nothing is sent.
I think the ajax route shouldn't be called, but anyway, I tried to play with 'fileuploaderror' and I do get the wanted errors, but I don't know how to display them. There must be a simple way in the fileuploaderror event, but I don't know it.
Can anyone help me with this one ?
Thanks
The text was updated successfully, but these errors were encountered: