I have an uploader which rejects users' upload when they exceed their quota. The response is in JSON and it is as follow:
{msg: "Upload limit reached", status: "error", code: "403"}
The Dropzone JS options is as follow:
Dropzone.options.uploadDropzone = {
paramName: "file1",
maxFilesize: 200,
maxThumbnailFilesize: 10,
success: function(file, response){
????
}
};
What should I do with the response in success
to show an error to my users in the uploader?