the only way i could see this is if you implemented some sort of ActiveX
component.  JS and Perl cannot see the client file system when executed,
whether from the server or the client.  it's part of the "security sandbox"
model.

Chris Olive,
DOEHRS Website Administrator 

-----Original Message-----
From: Milks, Jim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: Yet another filesize question


Hi All,
I know there has been a lot of talk about this subject lately, but none of
the threads directly answered my question. I know that I can determine a
file's size AFTER it has been uploaded, but I would like to prevent someone
from uploading a 100MB file, and then have to delete it after it has bogged
down the server.

Once I have selected a file to upload with a FILE input, can I determine the
value of the path to the selected file in order to do a CFDIRECTORY on the
path and determine the size, thus preventing the upload all together? Maybe
with Perl or JavaScript?

Thanks in advance,

James


----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.

Reply via email to