OpenSwoole\Core\Psr\UploadFile->__construct

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Core\Psr\UploadFile->__construct()

Parameters

fileOrResourceOrStream
size

Size of the upload file

errorStatus

Error status

clientFilename

Filename of the upload file

clientMediaType

Media type of the upload file

Return

Description

Create a new UploadFile with constructor function.

Last updated on February 28, 2026