• 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: [OT] Limiting File Upload Sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Limiting File Upload Sizes


  • Subject: Re: [OT] Limiting File Upload Sizes
  • From: Owen McKerrow <email@hidden>
  • Date: Tue, 1 Apr 2008 19:49:04 +1100

Hi Guys,

Thanks for the suggestions. I was after something specifically that stopped the user even trying to upload something so they don't waste time sitting around waiting for something to upload only have it to fail half way through.

I will check out Joshua's implementation.

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
- Peter Jackson, "The Lord of The Rings"



On 01/04/2008, at 3:01 PM, Chuck Hill wrote:

On Mar 31, 2008, at 6:46 PM, Miguel Arroz wrote:

Hi!

The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration.

You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if you are doing the upload using some Ajax trickery or not, etc.

If you don't want to use the Apache thing, you should be able to do a streaming upload (stream it to disk) and cut off the copying after a certain point. It should be straightforward to return an error message.


Chuck



On 2008/04/01, at 02:04, Owen McKerrow wrote:

Hi All,

Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload.
Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ?


Or is there something better out there ?

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks."
- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com


This email sent to email@hidden

Miguel Arroz http://www.terminalapp.net http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--

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: [OT] Limiting File Upload Sizes
      • From: james o <email@hidden>
  • Prev by Date: Re: binding validation problem
  • Next by Date: D2WS: Can't obtain rules because of protected access!
  • Previous by thread: Re: binding validation problem
  • Next by thread: Re: [OT] Limiting File Upload Sizes
  • Index(es):
    • Date
    • Thread