lib/Http/FileUpload.php
public function getErrorMessage()
    {
        switch ($this->error) {
            case UPLOAD_ERR_OK:
                return 'File uploaded successfully.';
            case UPLOAD_ERR_INI_SIZE:
            case UPLOAD_ERR_FORM_SIZE:
                return 'The uploaded file exceeds the maximum file size.';
            case UPLOAD_ERR_NO_FILE:
                return 'No file was uploaded.';
            case UPLOAD_ERR_PARTIAL:
                return 'The file was only partially uploaded.';
            case UPLOAD_ERR_NO_TMP_DIR:
            case UPLOAD_ERR_CANT_WRITE:
                return 'Could not create temporary file.';
            case UPLOAD_ERR_EXTENSION:
                return 'The upload was blocked.';
        }

        return 'An unknown error occured.';
    }
public function getErrorMessage()
    {
        switch ($this->error) {
            case UPLOAD_ERR_OK:
                return 'File uploaded successfully.';
            case UPLOAD_ERR_INI_SIZE:
            case UPLOAD_ERR_FORM_SIZE:
                return 'The uploaded file exceeds the maximum file size.';
            case UPLOAD_ERR_NO_FILE:
                return 'No file was uploaded.';
            case UPLOAD_ERR_PARTIAL:
                return 'The file was only partially uploaded.';
            case UPLOAD_ERR_NO_TMP_DIR:
            case UPLOAD_ERR_CANT_WRITE:
                return 'Could not create temporary file.';
            case UPLOAD_ERR_EXTENSION:
                return 'The upload was blocked.';
        }

        return 'An unknown error occured.';
    }
public function getErrorMessage ( ) { switch ( $ this -> error ) { case UPLOAD_ERR_OK : return 'File uploaded successfully.' ; case UPLOAD_ERR_INI_SIZE : case UPLOAD_ERR_FORM_SIZE : return 'The uploaded file exceeds the maximum file size.' ; case UPLOAD_ERR_NO_FILE : return 'No file was uploaded.' ; case UPLOAD_ERR_PARTIAL : return 'The file was only partially uploaded.' ; case UPLOAD_ERR_NO_TMP_DIR : case UPLOAD_ERR_CANT_WRITE : return 'Could not create temporary file.' ; case UPLOAD_ERR_EXTENSION : return 'The upload was blocked.' ; } return 'An unknown error occured.' ; }
Gets a description of the upload error that has occurred.

@return string
Gets a description of the upload error that has occurred .