diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 142e6e7b71..15e642a91f 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -413,6 +413,9 @@ * @returns {boolean} */ var fileTypeValidate = function (fileName, fileType) { + if (!fileType) { + return true; + } var mimes = fileType.split(","); if (mimes[0] === fileType) { mimes = (fileType + "").split(";");