Re: WOFileUpload
Re: WOFileUpload
- Subject: Re: WOFileUpload
- From: Mark Morris <email@hidden>
- Date: Thu, 30 Mar 2006 15:30:37 -0600
Hello Zac,
I would suspect that you have the WOFileUpload bound directly to the
BLOB in the db. So like any other field, checkbox, etc., when the
form is submitted, the value in the form is pushed up to the object,
and is committed to the database upon the saveChanges. But in the
case of a WOFileUpload, the existing value is not pushed to the
client, so the submit sets the BLOB to NULL.
An easy way around that would be to bind the WOFIleUpload to a
different variable, and in your submit method, if it's not null
assign it to the object, then do your saveChanges.
Regards,
Mark
On Mar 30, 2006, at 3:11 PM, Zac Konopa wrote:
I'm using an administration form in my app that allows a user to
login and edit characteristics of an instance of a specific
entity. One of those characteristics is an image stored in a BLOB
in the DB. It works fine for the initial upload, but if you ever
go back to edit the instance you either have to reupload the image
or it looses the data for some reason when you submit the edited
information. Obviously I just want it to keep the old data. Why
am I loosing this data and how do I keep it from happening?
Thx
Zac
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden