From efe4e0d5f77fa4d56e53e88603a50831e156f727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 15 Apr 2021 15:39:36 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/HttpServer/Http/File.php b/HttpServer/Http/File.php index cb4f70b4..5167d675 100644 --- a/HttpServer/Http/File.php +++ b/HttpServer/Http/File.php @@ -67,15 +67,12 @@ class File */ public function getContent(): string { - $open = fopen('php://temp', 'r'); + $open = fopen('php://input', 'r'); var_dump($open); $limit = 1024000; - var_dump(fread($open, $limit)); - $stat = fstat($open); - var_dump($stat); $sleep = $offset = 0; $content = '';