src/Service/ioService.php
protected function reportError($error)
    {
        if ($error == 1) {
            $errorStr = "The uploaded file exceeds the upload_max_filesize directive in php.ini";
        } else if ($error == 2) {
            $errorStr = "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form";
        } else if ($error == 3) {
            $errorStr = "The uploaded file was only partially uploaded";
        } else if ($error == 4) {
            $errorStr = "No file was uploaded";
        } else if ($error == 6) {
            $errorStr = "Missing a temporary folder";
        } else if ($error == 7) {
            $errorStr = "Failed to write file to disk";
        } else {
            $errorStr = "Error in file upload";
        }

        Openbizx::$app->getClientProxy()->showErrorMessage($errorStr);
    }
protected function reportError($error)
    {
        if ($error == 1) {
            $errorStr = "The uploaded file exceeds the upload_max_filesize directive in php.ini";
        } else if ($error == 2) {
            $errorStr = "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form";
        } else if ($error == 3) {
            $errorStr = "The uploaded file was only partially uploaded";
        } else if ($error == 4) {
            $errorStr = "No file was uploaded";
        } else if ($error == 6) {
            $errorStr = "Missing a temporary folder";
        } else if ($error == 7) {
            $errorStr = "Failed to write file to disk";
        } else {
            $errorStr = "Error in file upload";
        }

        Openbizx::$app->getClientProxy()->showErrorMessage($errorStr);
    }
Report Error

@param number $error Error code
@return void