Closed upworkmkd closed 6 years ago
Is there a way to save the file url in table like
$this->addBehavior('Josegonzalez/Upload.Upload', [ 'uploads' => [ 'tablefield'=>function(){ return $this->modal.$this->filename; } }], ]);
So that i can save the file path into db
Please have a look at the documentation, there is a dir option under fields which allows you to set the database field for the file path.
dir
fields
Is there a way to save the file url in table like
So that i can save the file path into db