diff --git a/gulp/res/js/forms.js b/gulp/res/js/forms.js index c6345393..08d545d1 100644 --- a/gulp/res/js/forms.js +++ b/gulp/res/js/forms.js @@ -113,9 +113,9 @@ class formHandler { const xhr = new XMLHttpRequest(); let postData; if (this.enctype === 'multipart/form-data') { - this.fileInput.disabled = true; //palemoon is dumb, so append them instead + this.fileInput && (this.fileInput.disabled = true); postData = new FormData(this.form); - this.fileInput.disabled = false; + this.fileInput && (this.fileInput.disabled = false); if (this.files && this.files.length > 0) { //add files to file input element for (let i = 0; i < this.files.length; i++) { diff --git a/package-lock.json b/package-lock.json index 5792a98b..894c5f37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2472,7 +2472,7 @@ } }, "express-fileupload": { - "version": "github:fatchan/express-fileupload#ecc5ad4f41771a1c23eed365e451220b9cc3e3c1", + "version": "github:fatchan/express-fileupload#9aada2ecdef8a6617ccf82746e5faa2aece77239", "from": "github:fatchan/express-fileupload", "requires": { "busboy": "^0.3.1"