Fr3nch13/CakePHP Utilities

create_uploaded_file.php

Table of Contents

Functions

createUploadedFile()  : UploadedFile
Create an uploaded file instance from an array of values.

Functions

createUploadedFile()

Create an uploaded file instance from an array of values.

createUploadedFile(array<string|int, mixed> $spec) : UploadedFile
Parameters
$spec : array<string|int, mixed>

A single $_FILES entry.

Tags
throws
InvalidArgumentException

If one or more of the tmp_name, size, or error keys are missing from $spec.

Return values
UploadedFile

        
On this page

Search results