Skip to content

Commit

Permalink
Bug fix regarding file object
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai committed Nov 1, 2018
1 parent 98ed06c commit fd7f1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starcounter-upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
sizeString: this.getFileSizeString(files[i].size)
};
if (!this.checkFileSize(task.file)) {
task.error = this.getMaxSizeExceededErrorMessage(file.name);
task.error = this.getMaxSizeExceededErrorMessage(task.file.name);
this.fire("statechange", task);
continue;
}
Expand Down Expand Up @@ -347,7 +347,7 @@
sizeString: this.getFileSizeString(file.size)
};
if (!this.checkFileSize(file)) {
task.error = this.getMaxSizeExceededErrorMessage(file.name);
task.error = this.getMaxSizeExceededErrorMessage(task.file.name);
this.fire("statechange", task);
return;
}
Expand Down

0 comments on commit fd7f1e4

Please sign in to comment.