We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<kl-upload action='https://nos.kaolafed.com/upload' file-list={imageList} image-width={960} accept=".png" num-max="1" value={imageList}></kl-upload>
即使 accept 只写 png ,还是能上传 jpg 格式的图片,貌似只判断到 image/* 类型后,没继续判断后缀。
accept
png
jpg
image/*
另外一个是使用了 before-upload 钩子,resolve('') 要传个空字符串进去,不然不会继续执行文件的后续校验。建议加上 null 和 undefined 的判断。
before-upload
resolve('')
null
undefined
The text was updated successfully, but these errors were encountered:
大佬大佬
Sorry, something went wrong.
No branches or pull requests
即使
accept
只写png
,还是能上传jpg
格式的图片,貌似只判断到image/*
类型后,没继续判断后缀。另外一个是使用了
before-upload
钩子,resolve('')
要传个空字符串进去,不然不会继续执行文件的后续校验。建议加上null
和undefined
的判断。The text was updated successfully, but these errors were encountered: