Browse Source

Pull request #1429: DEC-14403 fix: 场景没考虑全,外部使用者大部分根本不传accept属性

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '4718fc48547956d9166c30bd2aecbe844fc22a81':
  DEC-14403 fix: 场景没考虑全,外部使用者大部分根本不传accept属性
es6
guy 4 years ago
parent
commit
36c68d9664
  1. 3
      src/base/single/input/file.js

3
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(";");

Loading…
Cancel
Save