Closed challgren closed 4 years ago
This could be solved by passing ProcessorInterface
instance as argument to TransformerInterface::transform()
method.
Closing as PR #533 is open
Please reopen the issue as #533 is closed and not merged.
Fixed in #536
I'm using dev-cake-4.x and the
nameCallback
function is not uploading the renamed file.Expected behavior: File is uploaded to
decedent_id/nameCallback
Actual behavior File is uploaded to
decedent_id/originalFilename
Possible Solutions/Issues Previously in
UploadBehavior::beforeSave()
$data['name']
was set using the $path->filename(). TheDefaultTransformer::transform()
would use$data['name']
but now it uses$this->data->getClientFileName()
instead of the nameCallback provided name.In my AppWriter.php the
$path
argument isdecedent_id/originalFilename
when I would expect it to be thedecedent_id/nameCallback
Config