RE: Check filesize BEFORE uploading

2001-01-30 Thread Aaron Johnson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Roger,

Outside of checking the cgi.content_length for the size of the file
(which isn't completely secure because users can spoof that if they
want and doesn't help if you're uploading multiple files in the same
form), there is no way to get that information. It would require that
you have access to your users local system, which you never will
unless you're in an intranet environment.

Aaron Johnson, MCSE, MCP+I
Allaire Certified ColdFusion Developer
MINDSEYE, Inc.
phn617.350.0339
fax617.350.8884
icq66172567
[EMAIL PROTECTED]
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Check filesize BEFORE uploading

2001-01-30 Thread Christopher Olive, CIO

the entire point of that thread was that there was not a way in CF to do
that.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-Original Message-
From: Roger Lim [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 9:57 PM
To: CF-Talk
Subject: Check filesize BEFORE uploading


Hi,

I read a mail regarding the subject which said :

"ColdFusion has no way of knowing what the file size is BEFORE it reaches
the
server. The way i've done it is allow the full file to be uploaded, check
the file size (CFFILE) and then delete it. Of course, the system will warn
the user that the file they uploaded was too big AFTER CF has checked it.

It's not a pretty solution, but it's the only one that semi-accomplishes the
task."

So, is there any way that we can check the filesize BEFORE the file is being
uploaded?

Please advice, thanks!

Roger
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists