Yes, someone already posted one 

-----Original Message-----
From: Greg Luce [mailto:[EMAIL PROTECTED] 
Sent: 06 December 2006 16:04
To: CF-Talk
Subject: Re: Any way to limit file upload size?

Aren't there Flash solutions for smart/multiple file uploads. That would be
fairly palatable for most users.

Greg

On 12/6/06, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]>
wrote:
>
> You could potentially do it with JS, but that is obviously easily 
> bypassed and may not work on all browsers.
>
>
>
>
>
>
>
>
>
> "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, 
> Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed 
> Business, Registered in England, Number 678540.  It contains 
> information which is confidential and may also be privileged.  It is 
> for the exclusive use of the intended recipient(s).  If you are not 
> the intended recipient(s) please note that any form of distribution, 
> copying or use of this communication or the information in it is 
> strictly prohibited and may be unlawful.  If you have received this 
> communication in error please return it to the sender or call our 
> switchboard on +44 (0) 20 89107910.  The opinions expressed within 
> this communication are not necessarily those expressed by Reed 
> Exhibitions."
> Visit our website at http://www.reedexpo.com
>
> -----Original Message-----
> From: Ben Nadel
> To: CF-Talk
> Sent: Tue Dec 05 15:42:31 2006
> Subject: RE: Any way to limit file upload size?
>
> I am not sure if the content_length is available until the file is 
> actually uploaded. I could be wrong on that though.
>
>
> .......................
> Ben Nadel
> Certified Advanced ColdFusion MX7 Developer www.bennadel.com
>
> Need ColdFusion Help?
> www.bennadel.com/ask-ben/
>
> -----Original Message-----
> From: Doug Brown [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 05, 2006 10:39 AM
> To: CF-Talk
> Subject: Re: Any way to limit file upload size?
>
> What about something like so. Am I way off? It checks before the image 
> is uploaded.
>
>
> page_1.cfm
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-1"> <title>Untitled Document</title> </head>
>
> <body>
> <form action="page_1.cfm" method="post" enctype="multipart/form-data"> 
> <input type="file" name="test1"> <input type="submit" 
> name="submitThis"> </form>
>
>
> <cfset allowedFileSize = 1000>
> <cfif isDefined("form.submitThis")>
> <cfoutput>
> <cfif cgi.content_length gt "#Val(allowedFileSize)#"> Error your file 
> is wayyyyy to big<br> </cfif> Your file size was: #cgi.CONTENT_LENGTH# 
> and the allowed size was #allowedFileSize# </cfoutput> </cfif>
>
> </body>
> </html>
>
>
>
>
> Doug
>
>
>
>
>
> ----- Original Message -----
> From: "Snake" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Tuesday, December 05, 2006 7:06 AM
> Subject: RE: Any way to limit file upload size?
>
>
> > There is a setting in IIS to limit the size of form posts. But I 
> > can't
> find
> > it for the life of me.
> >
> >
> > -----Original Message-----
> > From: Gaulin, Mark [mailto:[EMAIL PROTECTED]
> > Sent: 05 December 2006 13:29
> > To: CF-Talk
> > Subject: Any way to limit file upload size?
> >
> > Hi
> > Is there any way in CF or IIS to limit the allowed file size for a
> form
> with
> > a file "attached"?
> >
> > I have a situation where someone might accidentally upload a huge 
> > file
> when
> > all we want is a sample file.  I would want to avoid not only 
> > creating
> a
> > huge temp file but also all of the bandwidth needed to send the file
> to
> the
> > server.
> >
> > Thanks
> > Mark
> >
> >
> >
> >
>
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263057
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to