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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to