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

Re: WOFileUpload


  • Subject: Re: WOFileUpload
  • From: Asa Hardcastle <email@hidden>
  • Date: Tue, 22 Apr 2008 00:45:13 -0400

Hi Sirius, 

I use a a direct action.   I began following this approach because I am dealing with large files and had no desire for them to be in memory.   In the WOMultipartIterator docs it says: "The InputStream subclass is a WOFormDataInpuStream and can be used to stream large file uploads to disk."    

To test, create a multipart form with a file upload in an HTML file and set the form action to a direct action on your webobjects app.   I can send you some sample code if you'd like.

:)

asa


On Apr 21, 2008, at 10:43 AM, sirius black wrote:
I like the idea of this approach, but maybe I'm not understanding you completely.  If I change my html to not use WOFileUpload and instead just upload like a normal file-upload:

Browse file:
<input name="fileName" type="file">
<br><webobject name="SubmitButton"/>
-------------------------------------------------------------------
SubmitButton: WOSubmitButton {
  action = submit;
  value = "Upload File";
}


Then it seems like I'm still reading in all the data before I even get to my takeValuesFromRequest. In fact when I get to larger files (~ 500MB -> 1.0GB) I don't even get to the takeValuesFromRequest and something else goes wonky.

Is this how you meant to implement this?  Or am I missing another web-objecty way to grab the file name information.

Thanks,

 _______________________________________________
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 (From: "sirius black" <email@hidden>)
 >Re: WOFileUpload (From: "sirius black" <email@hidden>)

  • Prev by Date: Re: ERXMutableArray fields in Entity Modeler
  • Next by Date: WO 5.3.x &amp workaround?
  • Previous by thread: Re: WOFileUpload
  • Next by thread: Re: WOFileUpload
  • Index(es):
    • Date
    • Thread