I am using dropzone.js for my drag-drop file upload solution. I want to upload only one file,if i upload second file the first one should be remove and second one should be uplo
The combination of two solutions does the job for me in the init function:
this.on("addedfile", function (file) { if (this.files.length > 1) { this.removeAllFiles() this.addFile(file); } });