upload example

This is an example of a CGI script that allows the user to upload a file through his browser. This example is for a paper to be submitted for a conference. It allows the user to submit a PostScript file containing the paper, along with the paper's title and author's name.

Because this is only an example and we don't have unlimited disk space, the contents of the uploaded file is simply echoed back to the user and then the file is deleted.

If this script is expected to write in a directory that is not world-writable, the setuid bit should be turned on. See chmod (1) for more information.

To install this, place the source in your directory with an extension of ".cgi" and the world read and execute bits turned on. Next, change the "self" variable so that it reflects the correct path to the script.

title:

author:

paper file (PostScript):