Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Http\Message\UploadedFileFactory

UploadedFileFactory class

Implements:

Psr\Http\Message\UploadedFileFactoryInterface

Methods

Name Description
createUploadedFile Function createUploadedFile
Create a new uploaded file.  
createUploadedFileFromFilename Function createUploadedFileFromFilename
Create a new uploaded file from filename  
createUploadedFilesFromArray Function createUploadedFilesFromArray

UploadedFileFactory::createUploadedFile

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

Return Values

\UploadedFileInterface

Throws Exceptions

\InvalidArgumentException

If the file resource is not readable.


UploadedFileFactory::createUploadedFileFromFilename

Description

public createUploadedFileFromFilename (string $filename)

Function createUploadedFileFromFilename Create a new uploaded file from filename

Parameters

Return Values

\UploadedFileInterface


UploadedFileFactory::createUploadedFilesFromArray

Description

public createUploadedFilesFromArray (array $files)

Function createUploadedFilesFromArray

Parameters

Return Values

array