UploadError

File upload errors.
Source
UploadError.php
Extends
Exception
Since
1.2.2

Constants

COULD_NOT_MOVE_TEMP_FILE = 79162

Could not move the uploaded temp file to the destination path.

EXT = 79167

The uploaded file extension is not as expected.

INVALID_UPLOAD_KEY = 79168

Invalid upload key.

PATH_NOT_WRITABLE = 79161

The path which the uploaded file should be moved to is not writable.

PLUGIN = 79164

The custom validating plugin did not validate the upload file.

SIZE = 79165

The uploaded file is bigger than expected.

TYPE = 79166

The uploaded mime-type is not as expected.

UNSUCCESSFULL = 79163

The uploading was not successfully done.

Static Methods

msg

string UploadError::msg(const code, string msg)

Returns error message.

Arguments

    code (const)
    Error code
    msg (string)
    Error message

Returns

string
Error message

Methods

__construct

UploadError $obj = new UploadError(const code, string msg)

Constructs Exception object.

Arguments

    code (const)
    Error code
    msg (string)
    Error message

Returns

void