• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOFileUpload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOFileUpload


  • Subject: Re: WOFileUpload
  • From: Zac Konopa <email@hidden>
  • Date: Thu, 30 Mar 2006 14:06:45 -0800

Perfect.

Thanks much,

Zac
On Mar 30, 2006, at 1:30 PM, Mark Morris wrote:

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
References: 
 >WOFileUpload (From: Zac Konopa <email@hidden>)
 >Re: WOFileUpload (From: Mark Morris <email@hidden>)

  • Prev by Date: Re: WOFileUpload
  • Next by Date: XCode 2.2 common error
  • Previous by thread: Re: WOFileUpload
  • Next by thread: XCode 2.2 common error
  • Index(es):
    • Date
    • Thread