Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: using uploadInfo from CGI.pm

by dws (Chancellor)
on Nov 30, 2001 at 07:55 UTC ( [id://128541]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      ## pull the file in a variable
      my $fh = $query->upload('upload');
    
      ## determine the file type via the headers
      my $type = $query->uploadInfo($fh)->{'Content-Type'};
    
  2. or download this
      ## pull the filename in a variable
      my $fname = $query->param('upload');
    
      ## determine the file type via the headers
      my $info = $query->uploadInfo($fname);
      my $type = $info->{'Content-Type'};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found