The command works on my box.  The problem may be that you are trying to get
the size of a file that is located on the client's machine.  I think you
will have to check the size of the file after it is uploaded and then decide
if it's too big or not.  If you want to check the file size before
uploading, you will probably need to use some javascript.  I may be way off
base on this but it's the only way I know to do it.

-----Original Message-----
From: anthony [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: check size of upload file


Hi,

when i upload a file to a website, I have the path
C:\\pathtofile\\pic.gif
to check the size I can do this
$size = -s $file_path;
but it does not work!
any help is appreciated, because i don't want people to upload file to a
website bigger that 500KB.

Anthony



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to