From 3084951cd5ceefdfa16f08986fa9652894e7fdee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 13 May 2021 18:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/File.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/HttpServer/Http/File.php b/HttpServer/Http/File.php index 43619179..9d3379d2 100644 --- a/HttpServer/Http/File.php +++ b/HttpServer/Http/File.php @@ -65,11 +65,10 @@ class File } - $content = file_get_contents($this->getTmpPath()); - var_dump($content); + var_dump($this->getContent()); - $this->newName = Snowflake::rename($this->getTmpPath()); +// $this->newName = Snowflake::rename($this->getTmpPath()); return $this->newName; } @@ -82,7 +81,7 @@ class File { $open = fopen($this->getTmpPath(), 'r'); - @move_uploaded_file($this->tmp_name, storage($this->name)); +// @move_uploaded_file($this->tmp_name, storage($this->name)); $limit = 1024000;