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
Dropzone.prototype.defaultOptions.init = function () { this.hiddenFileInput.removeAttribute('multiple'); this.on("maxfilesexceeded", function (file) { this.removeAllFiles(); this.addFile(file); }); };
this is wokrk for me.