UploadedFile
in package
FinalYes
A value object representing an uploaded file
This class is not meant to be instantiated on its own;
instances should only be accessed via Request::file()
.
Tags
Table of Contents
Methods
- error() : int
- The error code associated with this file upload
- name() : string
- The filename sent by the client
- size() : int
- The size, in bytes, of the uploaded file
- temp() : string
- The temporary filename of the file in which the uploaded file was stored on the server
- type() : string
- The MIME type sent by the client
Methods
error()
The error code associated with this file upload
public
error() : int
Return values
intname()
The filename sent by the client
public
name() : string
Return values
stringsize()
The size, in bytes, of the uploaded file
public
size() : int
Return values
inttemp()
The temporary filename of the file in which the uploaded file was stored on the server
public
temp() : string
Return values
stringtype()
The MIME type sent by the client
public
type() : string