Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

建议前端加入后缀名验证 #542

Closed
PSoul opened this issue Sep 5, 2017 · 0 comments
Closed

建议前端加入后缀名验证 #542

PSoul opened this issue Sep 5, 2017 · 0 comments
Labels

Comments

@PSoul
Copy link
Contributor

PSoul commented Sep 5, 2017

在前端也加一层文件后缀名验证,因为现在前端没验证任何文件后缀名,后端验证后返回消息给前端,这样做的坏处是:由于jquery.upload.js这个插件支持文件夹上传,如果文件夹里有10个不合法后缀名的文件,那么前端就要弹10次alert
我看了一下,这个插件官方就支持限制,jquery.fileupload-validate.js用这个js就行

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

No branches or pull requests

2 participants