I think it can be done using client side stuff - Flash 8+ or a Java applet.
(but not with just a CF server and html)

On 27/10/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
>
> Daniel,
>
> As far as I know, there is no good way of doing this. But, please let me
> know if you find it.
>
> -B
> ......................
> Ben Nadel
> Certified Advanced ColdFusion Developer
> www.bennadel.com
>
>
> -----Original Message-----
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 27, 2006 8:41 AM
> To: CF-Talk
> Subject: file size when uploading multiple files
>
> I'm uploading multiple files.  But before I upload any of the files, I
> want to see if any one of them is too large for upload.  We set a file
> size limit of 1 meg per file.
>
> In the past when I have uploaded files, it has been one file per form
> and I have some code that seems to allow me to check the file size.   I
> think that it's doing the whole size of the form though.
>
> <CFIF Val(CGI.CONTENT_LENGTH) GT 1048576>
> <!--- do something here --->
> </cfif>
>
> I want to root through and check the file size of each file before
> uploading.  I noticed that cfFile will check the file size AFTER it's
> uploaded and then I guess I can delete it if it's too large.  I'd rather
> be able to stop the problem ahead of time.
>
> Is there a way and if not, what do y'all do?
>
> thanks.
>
>     daniel
>   -  webuy  -
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258251
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