Re: Image Upload Behavior - The Bakery

2008-03-25 Thread Sam Sherlock
  $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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Image Upload Behavior

2008-03-25 Thread R. Rajesh Jeba Anbiah

On Mar 25, 8:38 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Mar 25, 2008, at 9:22 AM, Chris Hartjes wrote:
> > On Tue, Mar 25, 2008 at 9:39 AM, rachev.preslav
> > <[EMAIL PROTECTED]> wrote:
>
> >> I am having some problems with this behavior, more specifically in
> >> the
> >> behavior's beforeSave()  function.
>
> > If you expect some help, how about telling people the actual problem
> > you are experiencing.  As smart as the people on this list are, there
> > are no mind readers.  Well, none that will admit it anyway.
>
> Hello, I'm psychic.

 LOL

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Image Upload Behavior

2008-03-25 Thread John David Anderson (_psychic_)


On Mar 25, 2008, at 9:22 AM, Chris Hartjes wrote:

>
> On Tue, Mar 25, 2008 at 9:39 AM, rachev.preslav
> <[EMAIL PROTECTED]> wrote:
>>
>> I am having some problems with this behavior, more specifically in  
>> the
>> behavior's beforeSave()  function.
>
> If you expect some help, how about telling people the actual problem
> you are experiencing.  As smart as the people on this list are, there
> are no mind readers.  Well, none that will admit it anyway.

Hello, I'm psychic.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Image Upload Behavior

2008-03-25 Thread Chris Hartjes

On Tue, Mar 25, 2008 at 9:39 AM, rachev.preslav
<[EMAIL PROTECTED]> wrote:
>
>  I am having some problems with this behavior, more specifically in the
>  behavior's beforeSave()  function.

If you expect some help, how about telling people the actual problem
you are experiencing.  As smart as the people on this list are, there
are no mind readers.  Well, none that will admit it anyway.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Image Upload Behavior

2008-03-25 Thread rachev.preslav

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Image Upload Behavior - The Bakery

2008-03-25 Thread rachev.preslav

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---