> : To do this use you can use the CGI.CONTENT_LENGTH variable ....
> I just had to do this recently. I found the tutorial here.
> Check it out:
>
> http://www.teamallaire.com/tutorials/limitFileUploadSize.cfm
Unfortunately, relying on CGI.CONTENT_LENGTH doesn't prevent a user from
uploading a file larger than you want to allow, it merely allows you to not
do anything with that file. By the time that CGI.CONTENT_LENGTH exists, the
web server has received the HTTP request header and body containing the
file, I'd think, since both are sent simultaneously. If your concern is that
someone will attempt to upload an extremely large file as a crude denial of
service attack, this doesn't address that concern. You'd need some
client-side logic, using an applet or ActiveX control, to avoid using
standard HTTP form-based file uploading.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.