public function actionDownloadTemp($filename) { $filePath = $this->getModule()->getUserDirPath() . DIRECTORY_SEPARATOR . $filename; return Yii::$app->response->sendFile($filePath, $filename); }