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
-Luke