Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI - How to determine content length for multiple files ?

by Adrade (Pilgrim)
on Feb 06, 2006 at 12:53 UTC ( [id://528209]=note: print w/replies, xml ) Need Help??


in reply to CGI - How to determine content length for multiple files ?

Hi roadrunner,

I hope this is sort of what you're looking for. You can get the size of the file by looking at stat on the filehandle given by CGI.

use CGI; my $cgi = new CGI; my $fh = $cgi->upload('uploadedfile'); @st = stat($fh); print "Size: $st[7]";
I hope I wasn't completely off-track here. At least, I hope it helps some.

Good luck,
  -Adam
Retracted: Won't work with the upload-hook - sorry! :-)

--
By a scallop's forelocks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://528209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found