As the name says, it is made to be basic and direct.
UploadedFileFactory class
Psr\Http\Message\UploadedFileFactoryInterface
Name | Description |
---|---|
createUploadedFile | Function createUploadedFile |
Create a new uploaded file. | |
createUploadedFileFromFilename | Function createUploadedFileFromFilename |
Create a new uploaded file from filename | |
createUploadedFilesFromArray | Function createUploadedFilesFromArray |
Description
public createUploadedFile (\StreamInterface $stream, int $size, int $error, string $clientFilename, string $clientMediaType)
Function createUploadedFile Create a new uploaded file.
If a size is not provided it will be determined by checking the size of
the file.
Parameters
(\StreamInterface) $stream
(int) $size
(int) $error
(string) $clientFilename
(string) $clientMediaType
Return Values
\UploadedFileInterface
Throws Exceptions
\InvalidArgumentException
If the file resource is not readable.
Description
public createUploadedFileFromFilename (string $filename)
Function createUploadedFileFromFilename Create a new uploaded file from filename
Parameters
(string) $filename
Return Values
\UploadedFileInterface
Description
public createUploadedFilesFromArray (array $files)
Function createUploadedFilesFromArray
Parameters
(array) $files
Return Values
array