public function getFileUri($fieldName = null)
    {
        $path = self::UPLOAD_DIR_NAME . "/" . $this->getTableName();

        if ($fieldName) {
            $path .= "/" . $fieldName;
        }

        foreach ($this->getFileInfo() as $fileInfo) {
            if (isset($fileInfo["field"]) && isset($fileInfo["uri"]) && $fieldName == $fileInfo["field"]) {
                $path = $fileInfo["uri"];
                break;
            }
        }

        return $path;
    }
public function getFileUri($fieldName = null)
    {
        $path = self::UPLOAD_DIR_NAME . "/" . $this->getTableName();

        if ($fieldName) {
            $path .= "/" . $fieldName;
        }

        foreach ($this->getFileInfo() as $fileInfo) {
            if (isset($fileInfo["field"]) && isset($fileInfo["uri"]) && $fieldName == $fileInfo["field"]) {
                $path = $fileInfo["uri"];
                break;
            }
        }

        return $path;
    }
public function getFileUri ( $ fieldName = null ) { $ path = self :: UPLOAD_DIR_NAME . "/" . $ this -> getTableName ( ) ; if ( $ fieldName ) { $ path .= "/" . $ fieldName ; } foreach ( $ this -> getFileInfo ( ) as $ fileInfo ) { if ( isset ( $ fileInfo [ "field" ] ) && isset ( $ fileInfo [ "uri" ] ) && $ fieldName == $ fileInfo [ "field" ] ) { $ path = $ fileInfo [ "uri" ] ; break ; } } return $ path ; }
Get files directory, relative to base upload directory

@param null $fieldName
@return string
Get files directory relative to base upload directory