This commit is contained in:
2021-05-13 18:46:22 +08:00
parent cd98cb905a
commit 3084951cd5
+3 -4
View File
@@ -65,11 +65,10 @@ class File
} }
$content = file_get_contents($this->getTmpPath()); var_dump($this->getContent());
var_dump($content);
$this->newName = Snowflake::rename($this->getTmpPath()); // $this->newName = Snowflake::rename($this->getTmpPath());
return $this->newName; return $this->newName;
} }
@@ -82,7 +81,7 @@ class File
{ {
$open = fopen($this->getTmpPath(), 'r'); $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; $limit = 1024000;