src/Utility/Import.php
public function upload() : string
    {
        if (!$this->_validateUpload()) {
            return '';
        }

        $result = $this->_uploadFile();

        if ('' === $result) {
            $this->flash->error('Unable to upload file to the specified directory.');
        }

        return $result;
    }
public function upload() : string
    {
        if (!$this->_validateUpload()) {
            return '';
        }

        $result = $this->_uploadFile();

        if ('' === $result) {
            $this->flash->error('Unable to upload file to the specified directory.');
        }

        return $result;
    }
public function upload ( ) : string { if ( ! $ this -> _validateUpload ( ) ) { return '' ; } $ result = $ this -> _uploadFile ( ) ; if ( '' === $ result ) { $ this -> flash -> error ( 'Unable to upload file to the specified directory.' ) ; } return $ result ; }
Import file upload logic.

@return string
Import file upload logic .