updated file upload limit
This commit is contained in:
parent
2a99cef1ce
commit
4dfa1f3345
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue