Plib_XH

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
since
1.5

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
int

name()

The filename sent by the client

public name() : string
Return values
string

size()

The size, in bytes, of the uploaded file

public size() : int
Return values
int

temp()

The temporary filename of the file in which the uploaded file was stored on the server

public temp() : string
Return values
string

type()

The MIME type sent by the client

public type() : string
Return values
string

        
On this page

Search results