Skip to content
New issue

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组件accept判断问题 #311

Open
zhuping opened this issue Dec 7, 2017 · 1 comment
Open

kl-upload组件accept判断问题 #311

zhuping opened this issue Dec 7, 2017 · 1 comment

Comments

@zhuping
Copy link

zhuping commented Dec 7, 2017

<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/* 类型后,没继续判断后缀。

另外一个是使用了 before-upload 钩子,resolve('') 要传个空字符串进去,不然不会继续执行文件的后续校验。建议加上 nullundefined 的判断。

@yangluan
Copy link

大佬大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants