In the fieldlist you can put a list of fields the query is allowed to update.
So in your case, remove the 'image' field from the whitelist when the
image data is empty

On 11/13/06, Daniel Jewett <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I have a form for Model 'Item' that includes a file upload widget to
> get image data into a database. When I want to edit the data, how can
> I avoid having the binary data overwritten if the file upload is
> empty (null)? In other words if I'm not replacing the image I don't
> want the update to erase it.
>
> Looking at:
> Model::save (
> $data = null,
> $validate = true,
> $fieldList = array()
> )
>
> Thanks,
> Dan J.
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 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