public function getRelativeFilePath($filename, $subDir = self::UPLOADER_SUB_DIR)
    {
        $pathParts = array(Media::NAME, $subDir, $this->getFileDirPrefix($filename), $filename);

        return DIRECTORY_SEPARATOR . $this->getPath($pathParts);
    }
public function getRelativeFilePath($filename, $subDir = self::UPLOADER_SUB_DIR)
    {
        $pathParts = array(Media::NAME, $subDir, $this->getFileDirPrefix($filename), $filename);

        return DIRECTORY_SEPARATOR . $this->getPath($pathParts);
    }
public function getRelativeFilePath ( $ filename , $ subDir = self :: UPLOADER_SUB_DIR ) { $ pathParts = array ( Media :: NAME , $ subDir , $ this -> getFileDirPrefix ( $ filename ) , $ filename ) ; return DIRECTORY_SEPARATOR . $ this -> getPath ( $ pathParts ) ; }
Get relative file path.

@param string $filename
@param string $subDir

@return string
Get relative file path .