Gracias Barney and Steven.

There is a CGI variable called CONTENT_LENGTH that will hold the length of uploaded 
file content.  I believe that's the length before the content is unencoded, but I'm 
not 100% sure about that.

Note that the file is uploaded no matter what.  It gets stored as a temp file 
somewhere on the file system before CF starts processing the request. The CFFILE 
ACTION="upload" tag only moves the file from the temp location to the location you 
specifiy.

barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 11, 2003 2:49 PM
> To: CF-Talk
> Subject: File Upload
>
>
> I know I've used something before that could tell you the filesize of 
> a file input when you post a form, but I can't find the code. I 
> remember testing images to not allow upload of images over 100K. Is it 
> a form var or CGI? I know you can see file.filesize after you do a 
> file upload, but I need to avoid uploading the file if it's over a 
> certain size. Help?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to