• 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: "sirius black" <email@hidden>
  • Date: Tue, 22 Apr 2008 19:29:56 -0700

Chuck,

I'm curious how you would have Apache handle this.  I know of LimitRequestBody, but I haven't used it much, is this the route you were thinking?

Thanks.



On Fri, Apr 18, 2008 at 5:23 PM, Chuck Hill <email@hidden> wrote:

On Apr 18, 2008, at 5:10 PM, sirius black wrote:

I'm trying to verify the size of a file upload and limit its upload before actually sending any data across the wire.  I know I can check the content-length header early on in the game in dispatchRequest, but even if I just throw a RuntimeException at that point, I can't stop WebObjects from reading in the data anyways, before sending back a response.  I'm using WOFileUpload with streamToFilePath.

Fwiw, I've looked into _javascript_ validation to try and check the content-length client side first, but haven't had success with that.

Thoughts?


Your best bet is probably to get Apache to do this.

Chuck


--

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

  • Follow-Ups:
    • Re: WOFileUpload
      • From: Chuck Hill <email@hidden>
References: 
 >WOFileUpload (From: "sirius black" <email@hidden>)
 >Re: WOFileUpload (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: The type NSMutableArray is not generic; it cannot be parameterized with arguments
  • Next by Date: Re: WOFileUpload
  • Previous by thread: Re: WOFileUpload
  • Next by thread: Re: WOFileUpload
  • Index(es):
    • Date
    • Thread