• 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 and 5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOFileUpload and 5.4


  • Subject: Re: WOFileUpload and 5.4
  • From: William Hatch <email@hidden>
  • Date: Fri, 31 Oct 2008 10:02:46 -0400


On Oct 30, 2008, at 7:58 PM, Chuck Hill wrote:


On Oct 30, 2008, at 4:39 PM, William Hatch wrote:
On Oct 30, 2008, at 6:31 PM, Chuck Hill wrote:
On Oct 30, 2008, at 3:12 PM, William Hatch wrote:
On Oct 30, 2008, at 5:11 PM, Chuck Hill wrote:
On Oct 30, 2008, at 12:30 PM, William Hatch wrote:

5.4.3, using a pretty recent Wonder build. Deployed under either tomcat or as regular .woa, development in Eclipse....

Nothing happens when I click "Upload".

Meaning no request to the server? A request to the server but no data sent? Data is sent but the component does not see it? Something else?

Right, no request to the server. Nothing. Although the page does refresh; my method is not called.

I have seen Safari stall and not contact the application when an upload is present. Clicking the button a second time always works. If the page refreshes, it seems that it must be getting to and from the server, no? Otherwise, how would it refresh? If it is refreshing from the server, it sounds more like the form values are getting discarded. This can happen if the encoding gets changed, e.g. from UTF-8 to UTF8. Are you using the old UTF8 anywhere?

Interesting that you mention that Chuck; I'd found a relevant topic on the wiki that mentions this. The answer is: I don't think so... I haven't changed anything, other than upgrading to 5.4 and latest wonder. Is there some property perhaps I should be setting now?

All of the constants in WO that were formerly UTF8 are now UTF-8 as of 5.4.3 (prior versions had a mix). So if your code is using "UTF8" in some places and WO constants in others, that might be the cause. Deploy it as a regular WO app, and log out the headers and content in dispatchRequest(). I think that you will see that the browser is sending something.

OK, going to try that now. I wasn't able to find any place where I was using UTF8 or utf8 instead of UTF-8. Thanks Chuck.



Chuck



Chuck


I came across a thread by Mike discussing the perils of not binding filePath along with data, and that's not the case here; both are bound, although filePath is completely not used. This same exact component worked fine in 5.3. I also came across some other scary posts regarding encoding, and one regarding WOServeletAdaptor issues with WOFileUpload under 5.4 So what's the new new trick for getting this to fly again?


I don't recall having problems with uploads moving an app from 5.3.3 to 5.4.3.

Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________ 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 and 5.4 (From: William Hatch <email@hidden>)
 >Re: WOFileUpload and 5.4 (From: Chuck Hill <email@hidden>)
 >Re: WOFileUpload and 5.4 (From: William Hatch <email@hidden>)
 >Re: WOFileUpload and 5.4 (From: Chuck Hill <email@hidden>)
 >Re: WOFileUpload and 5.4 (From: William Hatch <email@hidden>)
 >Re: WOFileUpload and 5.4 (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: a nice SVN GUI client ?
  • Next by Date: Re: NSSelector and Void Returned Value
  • Previous by thread: Re: WOFileUpload and 5.4
  • Next by thread: NSSelector and Void Returned Value
  • Index(es):
    • Date
    • Thread