$this->log('    image upload behavior>>beforeSave' .
json_encode($model->data[$model->name][$field]), 'image-upload');

              $this->log('    image upload behavior>>field ' . $field,
'image-upload');
              $this->log('    image upload behavior>> ->name ' .
$model->name, 'image-upload');


and the like might help, check the tmp log folder - for image-upload.log

On 25/03/2008, rachev.preslav <[EMAIL PROTECTED]> wrote:
>
>
> Has anybody experienced problems with this behavior. When I tried the
> example that goes with the source, it worked quite well the first few
> times. After that, it suddenly stopped working.
>
> http://bakery.cakephp.org/articles/view/actas-image-column-behavior
>
>
> Then I checked the code and it seems that it has some problems on the
> following line in the behavior's beforeSave() function.
>
>
> 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