• 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
No file data from WOFileUpdate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No file data from WOFileUpdate


  • Subject: No file data from WOFileUpdate
  • From: Janine Sisk <email@hidden>
  • Date: Mon, 2 Apr 2007 23:24:52 -0700

I know I've been staring at this for too long;  hopefully the answer isn't *too* obvious. 

Here's what I have:

.wod

MainForm : WOForm {
enctype = "multipart/form-data";
}

ImageFile : WOFileUpload {
data = imageFileData;
mimeType = imageMimeType;
}

SubmitButton : WOSubmitButton {
action = saveChanges;
value = "Save Changes";
}

.java

in saveChanges():

     if (imageFileData == null || imageFileData.length() == 0) {
    System.out.println("exiting because there is no file data from the upload");
    return null;
       }

Consistently, imageMimetype is set (correctly) but imageFileData is null  (I have confirmed that it is actually null, not zero length).  I haven't been able to find much documentation on this, but what I do have seems to indicate that I'm doing this right, and it seems too simple to screw up anyway.  However.... :)

The file I'm uploading is only 152KB so I don't think it's a size problem, unless the file is so small WO can't find it. :)

Suggestions welcome!

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: No file data from WOFileUpdate
      • From: Guido Neitzer <email@hidden>
    • Re: No file data from WOFileUpdate
      • From: Robert Walker <email@hidden>
  • Prev by Date: Re: Reading NSData from a file
  • Next by Date: Re: Oracle on 10.4 (not server) MacIntel
  • Previous by thread: Re: Reading NSData from a file
  • Next by thread: Re: No file data from WOFileUpdate
  • Index(es):
    • Date
    • Thread