Skip to content

Commit

Permalink
Rename checkFile to checkFileSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai committed Oct 31, 2018
1 parent 7b5acc6 commit 12a6537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starcounter-upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
error: null,
sizeString: this.getFileSizeString(files[i].size)
};
if (!this.checkFile(task.file)) {
if (!this.checkFileSize(task.file)) {
task.error = this.getMaxSizeExceededErrorMessage(file.name);
this.fire("statechange", task);
continue;
Expand Down Expand Up @@ -346,7 +346,7 @@
error: null,
sizeString: this.getFileSizeString(file.size)
};
if (!this.checkFile(file)) {
if (!this.checkFileSize(file)) {
task.error = this.getMaxSizeExceededErrorMessage(file.name);
this.fire("statechange", task);
return;
Expand All @@ -358,7 +358,7 @@
this.processTask(task);
}
},
checkFile: function (file) {
checkFileSize: function (file) {
if (this.maxFileSize && file.size > this.maxFileSize) {
return false;
}
Expand Down

0 comments on commit 12a6537

Please sign in to comment.