UploadedFile

Undocumented in source.

Constructors

this
this(string path, string originalName, string mimeType, int errorCode)

Accepts the information of the uploaded file as provided by the PHP global $_FILES.

Members

Functions

extension
string extension()

Returns the original file extension.

getErrorCode
int getErrorCode()

Returns the upload error.

getErrorMessage
string getErrorMessage()

Returns an informative upload error message.

isValid
bool isValid()

Returns whether the file was uploaded successfully.

mimeType
string mimeType()

Returns the file mime type.

originalName
string originalName()

Returns the original file name.

store
bool store(string path)

Store the uploaded file on a filesystem disk.

Static functions

maxSize
long maxSize()

Returns the maximum size of an uploaded file as configured in php.ini.

Inherited Members

From File

path
string path()
Undocumented in source. Be warned that the author may not have intended to support it.
size
long size()
Undocumented in source. Be warned that the author may not have intended to support it.
extension
string extension()

Returns the extension based on the mime type.

mimeType
string mimeType()

Returns the mime type of the file.

move
bool move(string path)

Moves the file to a new location.

getTargetFile
string getTargetFile(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName(string name)

Returns locale independent base name of the given path.

Meta