I have to upload the files and I have some restriction that can be evaluated on the server. For instance the total size of all the files uploaded have a maximum size.
The demo states this: "// Return an empty string to signify success". From this I took that if I return a string that is not empty it will not be success. But when I tested instead of getting the error event the upload widget shows success.
Please provide an example on how to signify errors and if possible to return for instance an object as error.
What I have returned is something like this Json(new { errors: [{ ErrorMessage: "1"}, {ErrorMessage: "2"}] })