Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Dropzone remove error file

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);
            });

    }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Dropzone #remove #error #file
ADD COMMENT
Topic
Name
8+6 =