ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
createUploadedFile (StreamInterface $stream, int $size=null, int $error=\UPLOAD_ERR_OK, string $clientFilename=null, string $clientMediaType=null) | |
Create a new uploaded file. More... | |
Definition at line 5 of file UploadedFileFactoryInterface.php.
Psr\Http\Message\UploadedFileFactoryInterface::createUploadedFile | ( | StreamInterface | $stream, |
int | $size = null , |
||
int | $error = \UPLOAD_ERR_OK , |
||
string | $clientFilename = null , |
||
string | $clientMediaType = null |
||
) |
Create a new uploaded file.
If a size is not provided it will be determined by checking the size of the file.
StreamInterface | $stream | Underlying stream representing the uploaded file content. |
int | $size | in bytes |
int | $error | PHP file upload error |
string | $clientFilename | Filename as provided by the client, if any. |
string | $clientMediaType | Media type as provided by the client, if any. |