[tbnl-devel] Re: large file uploads

Zach Beane xach at xach.com
Fri May 12 12:49:55 UTC 2006


On Thu, May 11, 2006 at 07:01:08PM -0700, Luke J Crook wrote:
> Zach Beane wrote:
> >On Wed, May 03, 2006 at 05:32:26PM +0200, Edi Weitz wrote:
> 
> >Yes, though not an intentional DoS. My application accepts image files
> >and only processes files of a reasonable size. Allowing uploads of
> >very large files only to reject them later in the process consumes
> >CPU, bandwidth, and memory that could be used elsewhere.
> 
> Could you use Javascript on the client to check the file size before 
> allowing the upload?
> 
> Something like the following:
> 
> http://www.cs.tut.fi/~jkorpela/forms/file.html#restr

Hmm, that page seems to suggest that there is no reliable way to do it
on the client side.

Zach



More information about the Tbnl-devel mailing list