DropZone acceptedFiles type filter

前端 未结 3 1763
野的像风
野的像风 2021-02-05 08:00

I\'ve got a DropZone form working perfectly with one exception, I can\'t seem to limit the file types as precisely as I need to.

Using acceptedFiles: \"image/*\"<

3条回答
  •  醉酒成梦
    2021-02-05 08:53

    I think you should validate it from the controller as well.

    $this->validate($request, [
    
            'file' => 'required|mimes:jpg,jpeg,png,bmp']
    
        );
    

提交回复
热议问题