请教:验证器中,多文件上传验证该怎么写?

浏览:1253 发布日期:2017/04/28 分类:ThinkPHP5专区
注:其它表单验证都正常,唯独多文件上传不起作用<form action="/index/index/upload" enctype="multipart/form-data" method="post">
<input type="file" name="image[]" /> <br> 
<input type="file" name="image[]" /> <br> 
<input type="file" name="image[]" /> <br> 
<input type="submit" value="上传" /> 
</form> 
protected $rule = [
    'image|上传图片' => 'require', //不起作用
],
请问应该怎么写?谢谢~
最佳答案
评论( 相关
后面还有条评论,点击查看>>