Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
createUploadedFile (StreamInterface $stream, int $size=null, int $error=UPLOAD_ERR_OK, string $clientFilename=null, string $clientMediaType=null) | |
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. |
Implémente UploadedFileFactoryInterface.
Références $size, Laminas\Diactoros\$stream, et null.