src/helpers/Storage.php
public static function getUploadErrorMessages()
    {
        return [
            UPLOAD_ERR_OK => Module::t('upload_err_message_0'),
            UPLOAD_ERR_INI_SIZE => Module::t('upload_err_message_1'),
            UPLOAD_ERR_FORM_SIZE =>  Module::t('upload_err_message_2'),
            UPLOAD_ERR_PARTIAL =>  Module::t('upload_err_message_3'),
            UPLOAD_ERR_NO_FILE =>  Module::t('upload_err_message_4'),
            UPLOAD_ERR_NO_TMP_DIR =>  Module::t('upload_err_message_6'),
            UPLOAD_ERR_CANT_WRITE =>  Module::t('upload_err_message_7'),
            UPLOAD_ERR_EXTENSION =>  Module::t('upload_err_message_8'),
        ];
    }
public static function getUploadErrorMessages()
    {
        return [
            UPLOAD_ERR_OK => Module::t('upload_err_message_0'),
            UPLOAD_ERR_INI_SIZE => Module::t('upload_err_message_1'),
            UPLOAD_ERR_FORM_SIZE =>  Module::t('upload_err_message_2'),
            UPLOAD_ERR_PARTIAL =>  Module::t('upload_err_message_3'),
            UPLOAD_ERR_NO_FILE =>  Module::t('upload_err_message_4'),
            UPLOAD_ERR_NO_TMP_DIR =>  Module::t('upload_err_message_6'),
            UPLOAD_ERR_CANT_WRITE =>  Module::t('upload_err_message_7'),
            UPLOAD_ERR_EXTENSION =>  Module::t('upload_err_message_8'),
        ];
    }
public static function getUploadErrorMessages ( ) { return [ UPLOAD_ERR_OK => Module :: t ( 'upload_err_message_0' ) , UPLOAD_ERR_INI_SIZE => Module :: t ( 'upload_err_message_1' ) , UPLOAD_ERR_FORM_SIZE => Module :: t ( 'upload_err_message_2' ) , UPLOAD_ERR_PARTIAL => Module :: t ( 'upload_err_message_3' ) , UPLOAD_ERR_NO_FILE => Module :: t ( 'upload_err_message_4' ) , UPLOAD_ERR_NO_TMP_DIR => Module :: t ( 'upload_err_message_6' ) , UPLOAD_ERR_CANT_WRITE => Module :: t ( 'upload_err_message_7' ) , UPLOAD_ERR_EXTENSION => Module :: t ( 'upload_err_message_8' ) , ] ; }
Get the file upload error messages.

@return array All possible error codes when uploading files with its given message and meaning.
Get the file upload error messages .