Код: Выделить всё
public function behaviors()
{
return [
[
'class' => '\yiidreamteam\upload\FileUploadBehavior',
'attribute' => 'fileUpload',
'filePath' => '@webroot/uploads/[[pk]].[[extension]]',
'fileUrl' => '/uploads/[[pk]].[[extension]]',
],
];
}
Код: Выделить всё
'filePath' => '@webroot/uploads/'.$this->developer_id.'.[[extension]]',