I think Is better to use the original path:
function afterSave() {
if (!empty($this->data[$this->name]['logo'])) {
$path = $output = str_replace("//", "/",
$this->data[$this->name]['original']);
@unlink($path);
}
return true;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---