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;