updated file upload limit

This commit is contained in:
bill bittner 2017-07-07 21:20:41 -07:00
parent 2a99cef1ce
commit 4dfa1f3345

View file

@ -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;