anthony wrote: > 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
-s only works on the local file system. The file upload is coming over the network as a stream attached to your script's STDIN. Check $ENV{CONTENT_LENGTH}, or better, use the CGI module and it's $CGI::POST_MAX setting. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]