in reply to size of file upload

CGI returns a filehandle for the uploaded file which you should be able to pass to stat to see how big it is.

Replies are listed 'Best First'.
Re^2: size of file upload
by Anonymous Monk on Feb 13, 2006 at 02:59 UTC
    Returning the form field as a variable, would $size = stat($file); work? Or would I need to use a filehandle?