dropzone add download button addedfile

Solutions on MaxInterview for dropzone add download button addedfile by the best coders in the world

showing results for - "dropzone add download button addedfile"
Isaac
10 Jan 2019
1    //Prepare the drop zone area
2var myNewdDropzone = new Dropzone("#idOfForm",  {
3    url: "my-ajax.php",
4    method: "POST",
5    addRemoveLinks: false,
6    clickable: true,
7    previewTemplate: document.querySelector('#preview-template').innerHTML,
8    init : function() {
9        this.on("addedfile", function(file) { new_file_added(file); });
10        this.on("thumbnail", function(file,fileurl) { new_thumbnail_added(file); });
11        this.on("removedfile", function(file) { new_file_removed(file); });
12        this.on("totaluploadprogress", function(progress) { display_progress(progress); });
13        this.on("queuecomplete", function() { all_files_uploaded(); });
14        //this.on("processing", function(file) { new_file_processed(file); });
15    }
16});
17