From 1eb849dcac57691000101d8c30d45163beebac06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=94=BE=E7=A0=81=E8=BF=87=E6=9D=A5?= <695798354@qq.com> Date: Thu, 13 Aug 2020 10:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=88=9B=E5=BB=BA=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Upload.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/common/library/Upload.php b/application/common/library/Upload.php index 34db97635..c3a9b062c 100644 --- a/application/common/library/Upload.php +++ b/application/common/library/Upload.php @@ -248,6 +248,9 @@ class Upload $destDir = RUNTIME_PATH . 'chunks'; $fileName = $chunkid . "-" . $chunkindex . '.part'; $destFile = $destDir . DS . $fileName; + if(!file_exists($destDir)) { + @mkdir($destDir, 0777, true); + } if (!move_uploaded_file($this->file->getPathname(), $destFile)) { throw new UploadException(__('Chunk file write error')); } -- Gitee