Php 背包文件上载无法通过Laravel验证

Php 背包文件上载无法通过Laravel验证,php,laravel,laravel-7,backpack-for-laravel,Php,Laravel,Laravel 7,Backpack For Laravel,我想上传图像到现有的项目在目前。以下是我的字段的属性: [ 'label' => __('admin.product_image'), 'name' => "product_image", 'type' => 'image', 'upload' => true, 'disk' => 'uploads' ], 在我的

我想上传图像到现有的项目在目前。以下是我的字段的属性:

        [
            'label' => __('admin.product_image'),
            'name' => "product_image",
            'type' => 'image',
            'upload' => true,
            'disk' => 'uploads'
        ],
在我的表单请求类中:

        'product_image' => 'nullable|file',
如果我关闭了验证,并从请求中添加了我的“产品图片”,我会得到以下结果:


有人能帮我找到我缺少的东西吗?

背包默认情况下将文件转换为base64字符串,并且您的文件验证程序失败,因为属性包含字符串,而不是文件