Compare commits

2 Commits

Author SHA1 Message Date
Jerry Ma
103e88977c Update UploadedFile.php 2023-06-02 12:56:54 +08:00
Jerry Ma
a253ddfb29 Update globals.php 2023-06-02 12:55:34 +08:00
2 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ class UploadedFile implements UploadedFileInterface
* @var null|string
*/
private $file;
private string $key;
private bool $moved = false;
@@ -45,11 +47,17 @@ class UploadedFile implements UploadedFileInterface
$this->client_media_type = $this->fileinfo['type'] ?? null;
$this->error = $this->fileinfo['error'];
$this->size = $this->fileinfo['size'];
$this->key = $this->fileinfo['key'];
if ($this->isOk()) {
$this->file = $this->fileinfo['tmp_name'];
}
}
public function getKey(): string
{
return $this->key;
}
public function isMoved(): bool
{

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
const CHOIR_PSR_HTTP_VERSION = '1.0.1';
const CHOIR_PSR_HTTP_VERSION = '1.0.2';
// Choir TCP 连接状态
const CHOIR_TCP_INITIAL = 0;