php 在linux 同时上传多个文件时报错 SplFileObject::__construct(/tmp/phpvfQPvQ):

分析:这个不是上传文件的最大值的问题,而是由于linux系统自动清除临时文件的愿意造成的

thinkphp\library\think\File.php 的构造函数加个判断
if(file_exists($filename))
简单解决报错可以让你用起来
不知道有没有其他其他不良影响

public function __construct($filename, $mode = 'r')
    {    
    
        if(file_exists($filename)){
            parent::__construct($filename, $mode);
        $this->filename = $this->getRealPath();
        }
        
    }

猜你喜欢

转载自blog.csdn.net/qq_40270754/article/details/85005353