• 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: How do I prevent WO5.4 from reading the whole request?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I prevent WO5.4 from reading the whole request?


  • Subject: Re: How do I prevent WO5.4 from reading the whole request?
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 17 Jan 2008 12:35:51 -0500

This is how I do it in one of our apps:

File tempFile = ERXFileUtilities.writeInputStreamToTempFile(request().multipartIterator().nextFormData().formDataInputStream());

... in this case, I know there's only one key coming in, so I cheat and don't "properly" iterator the form datas -- i just grab the first one.  You can iterate over the form datas and check their name to find the one you are looking for if you have more than one.  If you don't use Wonder, ERXFileUtilities.writeInputStreamToTempFile is basically exactly what it sounds like.

ms

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: How do I prevent WO5.4 from reading the whole request?
      • From: Bogdan Zlatanov <email@hidden>
References: 
 >How do I prevent WO5.4 from reading the whole request? (From: Bogdan Zlatanov <email@hidden>)

  • Prev by Date: Re: Unexpected awakeFromInsertion() behaviour
  • Next by Date: Re: Mr. Pierre Frisch on webobjects-dev
  • Previous by thread: How do I prevent WO5.4 from reading the whole request?
  • Next by thread: Re: How do I prevent WO5.4 from reading the whole request?
  • Index(es):
    • Date
    • Thread