From 84e10fc1f589e3cbafd0d40b72f550f0a7ddf942 Mon Sep 17 00:00:00 2001 From: Jack Bentley Date: Mon, 17 Oct 2016 20:18:55 +0100 Subject: [PATCH] feat(uploader): adds validation option to allow empty file uploads #903 --- client/js/uploader.basic.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/uploader.basic.api.js b/client/js/uploader.basic.api.js index b2b6086b4..14178c657 100644 --- a/client/js/uploader.basic.api.js +++ b/client/js/uploader.basic.api.js @@ -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(); }