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

简介: 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

相关文章
|
6月前
|
缓存 JavaScript
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
56 0
|
11月前
Newline required at end of file but not found.
Newline required at end of file but not found.
104 0
Newline required at end of file but not found.
|
11月前
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179)
183 0
|
PHP 数据库
ThinkPHP: Class ‘think\\facade\\Filesystem‘ not found
ThinkPHP: Class ‘think\\facade\\Filesystem‘ not found
475 0
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
125 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
cl.exe is unable to create an executable file
cl.exe is unable to create an executable file
103 0
|
文字识别
解决pytesseract.pytesseract.TesseractError: (1, ‘Error opening data file C:\\Program Files\\Tesseract-
pytesseract.pytesseract.TesseractError: (1, ‘Error opening data file C:\Program Files\Tesseract-OCR\tessdata/chi_sim.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your “tessdata” directory. Failed loading language ‘chi_sim’ Tesseract couldn’t load any languages! Cou
1016 0
解决pytesseract.pytesseract.TesseractError: (1, ‘Error opening data file C:\\Program Files\\Tesseract-
|
开发工具 Android开发
The path ‘E:\ZERO‘ does not belong to a directory.
The path ‘E:\ZERO‘ does not belong to a directory.
220 0
The path ‘E:\ZERO‘ does not belong to a directory.
|
TensorFlow 算法框架/工具 Python
成功解决Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'f:\\program files\\p
成功解决Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'f:\\program files\\p
|
JavaScript 前端开发 Shell