计算机网络/计算机科学与应用/系统/运维/开发

ThinkPHP5.1 2个以上单文件域上传报错 SplFileObject::__construct(C:\Users\a\AppData\Local\Temp\php9A5E.tmp): failed to open stream: No such file or directory

ThinkPHP5.1 2个以上单文件域上传报错

SplFileObject::__construct(C:\Users\a\AppData\Local\Temp\php9A5E.tmp): failed to open stream: No such file or directory


解决办法:

ThinkPHP/library/think/File.php

添加  file_exists 即可


image.png

照顾好自己,如果尚有余力,记得保护美好的东西,不畏不惧赤诚善良。

评论

^