Dropzone.options.myDropzone = {
url: "http://someurl",
parallelUploads: 5,
maxFiles: 1,
maxFilesize: .06,
addRemoveLinks: true,
dictDefaultMessage: 'Drag your images here',
init: function() {
console.log('init');
this.on("error", function(file){
alert("No more files please!");
this.removeFile(file);
});
}
};
error: function(file) {
$(file.previewElement).remove();
}