Last active
March 23, 2023 22:56
-
-
Save RyanWarke/f599b3e3fb0f6beaaf84 to your computer and use it in GitHub Desktop.
Dropzone.js refresh page on upload of mutiple files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dropzone.options.uploadImagesForm = { | |
maxFilesize: 3, | |
acceptedFiles: '.jpg, .jpeg, .png, .bmp', | |
init: function() { | |
this.on('success', function(){ | |
if (this.getQueuedFiles().length == 0 && this.getUploadingFiles().length == 0) { | |
location.reload(); | |
} | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment