Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
},
queuecomplete: function() {
if(showProgressbar) {
NProgress.done();
}
if (optionsStack.length && optionsStack[optionsStack.length - 1].uploadQueueCompleted) {
optionsStack[optionsStack.length - 1].uploadQueueCompleted();
}
if (uploadedFiles.length !== 0) {
ConcreteEvent.publish('FileManagerAddFilesComplete', {files: uploadedFiles});
uploadedFiles = [];
}
}
});
dropzone = new Dropzone(
window.document.body,
options
);
}