Skip to content

Commit

Permalink
feat(uploader): adds validation option to allow empty file uploads Fi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbentley committed Oct 17, 2016
1 parent 2b7fa0b commit 84e10fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/js/uploader.basic.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@
return validityChecker.failure();
}

if (size === 0) {
if (!this._options.validation.allowEmpty && size === 0) {
this._itemError("emptyError", name, file);
return validityChecker.failure();
}
Expand Down

0 comments on commit 84e10fc

Please sign in to comment.