-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Is your feature request related to a problem? Please describe.
业务使用 upload-to-ali 上传 ios 的 P12 证书以及 mobileprovision 描述文件,遇到设置 accept 的问题,accept = ‘application/*’ 不能解决文件类型问题。需要自己另外写 js 解析文件类型,有点麻烦
Describe the solution you'd like
在源码内判断文件类型的函数内加入一个 console 打印 files 方便开发者知道罕见文件的类型
if (
this.accept &&
(this.accept.indexOf('/*') > -1
? files.some(
i => i.type.indexOf(this.accept.match(mimeTypeHalfRegex)) === -1
)
: files.some(i => this.accept.indexOf(i.type) === -1))
) {
console.log(files) // 这里
alert('文件格式有误!')
reset()
return
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
