How to use the dropzone/dist/dropzone function in dropzone

To help you get started, we’ve selected a few dropzone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github concrete5 / concrete5 / build / foundation / js / cms / file-manager / uploader.js View on Github external
}
        },
        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
    );
}