分析:這個不是上傳文件的最大值的問題,而是由於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();
}
}
---------------------
作者:skalpat
來源:CSDN
原文:https://blog.csdn.net/qq_40270754/article/details/85005353
版權聲明:本文爲博主原創文章,轉載請附上博文鏈接!