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

        return DIRECTORY_SEPARATOR . $this->getPath($pathParts);
    }