#!/usr/local/bin/perl require "./cgi-lib.pl"; ## TO DO: file with zero length ## $cgi_lib'maxdata = 512000; $cgi_lib'writefiles = "/tmp"; $ret = &ReadParse; &CgiDie("Error in reading and parsing of CGI input") if !defined $ret; &CgiDie("No data uploaded", "Please enter it in fup.html.") if !$ret; $in{'paperfile'} =~ s//>/g; # Now produce the result: an HTML page... print &PrintHeader; print &HtmlTop("File Upload Results"); print <You've uploaded a file. Your title of the paper were:
$in{'title'}

The file's full path is:

$in{'paperfile'}
MSG::
$cgi_msg
EOT print &HtmlBot;