I am having some problems with this behavior, more specifically in the
behavior's beforeSave()  function.

http://bakery.cakephp.org/articles/view/actas-image-column-behavior


if ($this->__isUploadFile($model->data[$model->name][$field])) {
                    $tempData[$field] = $model->data[$model->name]
[$field];
                    $model->data[$model->name][$field]=$this-
>__getContent($model->data[$model->name][$field]);
                } else {
                    unset($model->data[$model->name][$field]);
                }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to