models/Item.php
public function getStoragePath()
    {
        $moduleName = \bariew\postModule\Module::moduleName($this);
        $user_id = $this->getAttribute('user_id') ? : Yii::$app->user->id;
        return "@app/web/files/{$user_id}/{$moduleName}/"
            . $this->formName() . '/' . $this->id; 
    }
public function getStoragePath()
    {
        $moduleName = \bariew\postModule\Module::moduleName($this);
        $user_id = $this->getAttribute('user_id') ? : Yii::$app->user->id;
        return "@app/web/files/{$user_id}/{$moduleName}/"
            . $this->formName() . '/' . $this->id; 
    }
Relative path for saving model files.
@return string path.