Browse Source

Actually fix upload.js issue

pull/159/head
mutantmonkey 6 years ago
parent
commit
9d716a655e
  1. 2
      static/js/upload.js

2
static/js/upload.js

@ -43,7 +43,7 @@ Dropzone.options.dropzone = {
}, },
sending: function(file, xhr, formData) { sending: function(file, xhr, formData) {
var randomize = document.getElementById("randomize"); var randomize = document.getElementById("randomize");
if(typeof randomize != "undefined") {
if(randomize != null) {
formData.append("randomize", randomize.checked); formData.append("randomize", randomize.checked);
} }
formData.append("expires", document.getElementById("expires").value); formData.append("expires", document.getElementById("expires").value);

Loading…
Cancel
Save