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:
Hmm, that page seems to suggest that there is no reliable way to do it on the client side.
Zach