Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Basic HTML5 Template</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
</head>
@RyanWarke
RyanWarke / dropzone.js
Last active March 23, 2023 22:56
Dropzone.js refresh page on upload of mutiple files.
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();
}
});
}