public function getUploadPath($name = null)
    {
        if (is_null($name)) {
            return '';
        } else {
            if (!isset($this->cache[$name])) {
                $this->cache[$name] = Yii::$app->pathManager->getPath($this->namespace);
            }
        }
        return $this->cache[$name]->getFullPath($name);
    }