Help for this page

Select Code to Download


  1. or download this
      my $filename = $q->param('upload_file');
  2. or download this
        use CGI qw/:standard/;
        use CGI::Carp 'fatalsToBrowser';
        $CGI::POST_MAX=1024 * 100;  # max 100K posts
        $CGI::DISABLE_UPLOADS = 1;  # no uploads
    
  3. or download this
    my $filename   = $q->param('upload_file');    # returns (client-side) 
    +name of the file
    my $filehandle = $q->upload('upload_file');   # returns handle to the 
    +server-side temp file