Closed mnishig closed 6 years ago
You probably have an older version of CakePHP and need to upgrade that as well to get a newer version of this plugin.
Closing as we don't control how composers dependency resolution works. I think you can use conposer outdated
to see what you need to update
I installed cakephp-upload with compose follwing command
composer require josegonzalez/cakephp-upload
Try to Example on document , but nameCallback occured error
and checked my installed file as bellow that seems like old.
・vendor/josegonzalez/cakephp-upload/src/File/Path/Filename/DefaultTrait.php
` trait DefaultTrait { /**
nameCallback
is specified in settings, then that callable@return string */ public function filename() { $processor = Hash::get($this->settings, 'nameCallback', null); if (is_callable($processor)) { return $processor($this->data, $this->settings); }
} } `