Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on function _deleteFile #73

Open
rodrigowebjump opened this issue Feb 24, 2011 · 0 comments
Open

Bug on function _deleteFile #73

rodrigowebjump opened this issue Feb 24, 2011 · 0 comments

Comments

@rodrigowebjump
Copy link

When the option 'folderAsField' is used, the file is not deleted.

To fix need to add the following code after before $saveAs = $dir . DS . $filename;

$options = $this->__fields[$model->alias][$field];
if (isset($options['folderAsField']) && !empty($options['folderAsField']) && is_string($options['folderAsField'])) {
$dir .= DS . $model->data[$model->alias][$options['folderAsField']];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant