• 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 - No form data left for WOFileUpload!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOFileUpload - No form data left for WOFileUpload!


  • Subject: Re: WOFileUpload - No form data left for WOFileUpload!
  • From: David Aspinall <email@hidden>
  • Date: Sat, 17 Apr 2004 20:25:12 -0400

I had two problems this week which may or may not be related.

1 - in a component action form, I have the WOFileUpload bound directly to an NSData accessor method, but if I did not also provide a filename binding as well (even though I did not need it or use it) the content was SOMETIMES null!!!. It seems that the multi part form evaluates each part and if it hit the filename part but had no binding for it, it aborted (or closed) the whole upload. So it would fail depending on the order the BROWSER encoded the multiple parts. Once i added an simple string binding it works consistently.

2 - Using a direct action streaming interface, I was trying to identify all the different form parts before evaluating them. The problem was the FilePart was consistently empty, no NSData, no input stream .. nothing. Seems if you do not evaluate each part as then WOMultipartEnumerator provides them, it will close that part and start the next one. The downside is that I now have to accept the whole stream before I can decide (based on other form elements) wether I even want it.

Hope this helps,
David
---
email@hidden
(416) 513-9524 x263

Ticoon Technology Inc.
56 The Esplanade, Suite 404, Toronto, ON, M5E 1A7


On 17-Apr-04, at 7:12 PM, Hunter Hillegas wrote:

I have a component that has two WOForms, each contains a separate WOFileUpload element.

When I try to submit either form (they submit to distinct actions), I get the following stack trace:

[2004-04-17 16:10:12 PDT] <WorkerThread11> java.lang.IllegalStateException: <com.webobjects.appserver._private.WOFileUpload> No form data left for WOFileUpload!
at com.webobjects.appserver._private.WOFileUpload.takeValuesFromRequest(WO FileUpload.java:183)
at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFrom Request(WODynamicGroup.java:81)
at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest( WODynamicGroup.java:89)
at com.webobjects.appserver._private.WOForm.takeValuesFromRequest(WOForm.j ava:70)
at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFrom Request(WODynamicGroup.java:81)
at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest( WODynamicGroup.java:89)
at com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent. java:914)
at com.webobjects.appserver.WOSession.takeValuesFromRequest(WOSession.java :1137)
at com.webobjects.appserver.WOApplication.takeValuesFromRequest(WOApplicat ion.java:1350)


So, am I breaking the rules or should this work? Each form is set as enctype = "multipart/form-data". I have other WOFileUploads in my app without any trouble.

If anyone has seen this and could point me in the correct direction, that would be great.

H
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >WOFileUpload - No form data left for WOFileUpload! (From: Hunter Hillegas <email@hidden>)

  • Prev by Date: Re: WOFileUpload - No form data left for WOFileUpload!
  • Next by Date: RE: WOFileUpload - No form data left for WOFileUpload!
  • Previous by thread: Re(2): WOFileUpload - No form data left for WOFileUpload!
  • Next by thread: Re: WOFileUpload - No form data left for WOFileUpload!
  • Index(es):
    • Date
    • Thread