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

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

上一篇:php-树枝模板的探查器


下一篇:c#-自动化Microsoft Word时RPC_E_SERVERFAULT