public function getRelativePath()
    {
        if ($this->file !== null) {
            return dirname($this->file->getForLocalProcessing(false)) . '/';
        } else {
            return str_replace(PATH_site, '', $this->fileInfo['path']);
        }
    }
public function getRelativePath()
    {
        if ($this->file !== null) {
            return dirname($this->file->getForLocalProcessing(false)) . '/';
        } else {
            return str_replace(PATH_site, '', $this->fileInfo['path']);
        }
    }
public function getRelativePath ( ) { if ( $ this -> file !== null ) { return dirname ( $ this -> file -> getForLocalProcessing ( false ) ) . '/' ; } else { return str_replace ( PATH_site , '' , $ this -> fileInfo [ 'path' ] ) ; } }
return relative to site root file path
@return string Filepath (f.e. fileadmin/user_upload/)
return relative to site root file path