• 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
Having trouble with WOFileUpload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Having trouble with WOFileUpload


  • Subject: Having trouble with WOFileUpload
  • From: email@hidden
  • Date: Fri, 21 Jul 2006 23:38:02 -0700

I'm building my first WO app (not counting the tutorial) and I'm stuck. First time of many, I'm sure. :)

My goal is to duplicate this site: http://www.nhlpm.org. We put that together as a temporary site for a former neighbor, who has a license plate museum in his garage. Right now it's static HTML, and the long-term goal is to build him a really snazzy site to showcase his collection. But for now I just want to duplicate what's there, which means (disregarding the intro page) I need one display page and one set of add/edit/delete pages.

My entity is called Panel, and I made it through all the EOModeler/ FrontBase stuff without too much trouble. I decided to write the "add" page first, since I need to get something into the database before I can do anything else. So first I wrote an add page that just handled the title and description, and life is good. Data is making it's way into the database just fine.

Now I need to handle the thumbnail and full-sized images. I knew this would be the hard part; I've seen a number of people having trouble with WOFileUpload. So I started out simple - no file type checking or anything, just get the data into the database.

The two attributes are called thumbnail and bigImage, and they are both BLOBs on the database side and NSData on the application side.

My first attempt was to put the two WOFileUploads into my form, and bind their data attributes directly to the corresponding entity attributes. No errors, but no data being saved either. I tried this first without the enctype set, then with it set to "multipart/form- data". I also tried binding them to independent NSDatas as well, and then using those to set the ones in the entity, but no luck. My next step is to check the length of those NSDatas and see if the files are being uploaded at all, but it's late and that will have to wait.

Is there anything obvious I'm doing wrong here? I thought I read a discussion of this not too long ago on one of the lists, but Google isn't finding it for me.

thanks,

janine

_______________________________________________
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


  • Follow-Ups:
    • Re: Having trouble with WOFileUpload
      • From: email@hidden
    • Re: Having trouble with WOFileUpload
      • From: David Chaney <email@hidden>
  • Prev by Date: Re: mysql bug on 4.1
  • Next by Date: Re: Qualifiers, many-to-many and horizontal inheritance
  • Previous by thread: Re: Qualifiers, many-to-many and horizontal inheritance
  • Next by thread: Re: Having trouble with WOFileUpload
  • Index(es):
    • Date
    • Thread