From 4dfa1f33450c1000098e96a26a990e3788508251 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Fri, 7 Jul 2017 21:20:41 -0700 Subject: [PATCH] updated file upload limit --- public/assets/js/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/assets/js/index.js b/public/assets/js/index.js index fb148dae..81b1d9ee 100644 --- a/public/assets/js/index.js +++ b/public/assets/js/index.js @@ -16,7 +16,7 @@ function publishSelectedImage(event) { } // make sure the name is available then start the upload validateClaimName(name) - .done(function() { + .then(function() { uploader.submitFiles(stagedFiles); //note: must pass the file as part of an array. }) .catch(function(error) { @@ -25,12 +25,6 @@ function publishSelectedImage(event) { }; /* socketio-file-upload listeners */ -uploader.maxFileSize = 5000000; -uploader.addEventListener("error", function(data){ - if (data.code === 1) { - alert("Sorry, uploading is limitted to 5 megabytes."); - } -}); uploader.addEventListener('start', function(event){ var name = document.getElementById('publish-name').value; var license = document.getElementById('publish-license').value;