$filename = $query->param('uploaded_file'); $type = $query->uploadInfo($filename)->{'Content-Type'}; # or $fh = $query->upload('uploaded_file'); while (<$fh>) { print; }