ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Psr\Http\Message\UploadedFileFactoryInterface Interface Reference
+ Collaboration diagram for Psr\Http\Message\UploadedFileFactoryInterface:

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...
 

Detailed Description

Definition at line 5 of file UploadedFileFactoryInterface.php.

Member Function Documentation

◆ createUploadedFile()

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.

See also
http://php.net/manual/features.file-upload.post-method.php
http://php.net/manual/features.file-upload.errors.php
Parameters
StreamInterface$streamUnderlying stream representing the uploaded file content.
int$sizein bytes
int$errorPHP file upload error
string$clientFilenameFilename as provided by the client, if any.
string$clientMediaTypeMedia type as provided by the client, if any.
Returns
UploadedFileInterface
Exceptions

InvalidArgumentException If the file resource is not readable.


The documentation for this interface was generated from the following file: