您当前的位置: 首页 >  ar

彭世瑜

暂无认证

  • 2浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Argument 2 passed to think\\filesystem\\Driver::putFile() must be an instance of think\\File

彭世瑜 发布时间:2021-10-21 15:30:47 ,浏览量:2

ThinkPHP6.0上传文件,小文件可以正常上传,稍微大一点的文件就会报错

Argument 2 passed to think\\filesystem\\Driver::putFile() must be an instance of think\\File, null given

修改配置文件php.ini

# post_max_size = 8M
post_max_size = 100M

# upload_max_filesize = 2M
upload_max_filesize = 100M

参考 http://www.thinkphp.cn/topic/28078.html

关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.0952s