直接在<input type="file" name="file>中的属性好像不能实现  我以前问过 accept也不行
通过提交到服务器上验证吧!