diff --git a/VERSION b/VERSION index f64a12c..df8466e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2308.212025 +0.2308.220004 diff --git a/src/Http/Content/FormContent.php b/src/Http/Content/FormContent.php index a83f23a..ecf4659 100644 --- a/src/Http/Content/FormContent.php +++ b/src/Http/Content/FormContent.php @@ -1,7 +1,7 @@ postFields, '', '&', $spacesAsPlus ? PHP_QUERY_RFC1738 : PHP_QUERY_RFC3986); } + public function hasUploadedFile(string $name): bool { + return isset($this->uploadedFiles[$name]); + } + public function getUploadedFile(string $name): HttpUploadedFile { if(!isset($this->uploadedFiles[$name])) throw new RuntimeException('No file with name $name present.');