#!/usr/local/bin/haserl --upload-limit=4096 --upload-dir=/tmp

<% if test -n "$FORM_uploadfile"; then %>

You uploaded a file named <% echo -n $FORM_uploadfile_name %>, and it was temporarily stored on the server as <% echo $FORM_uploadfile %>. The file was <% cat $FORM_uploadfile | wc -c %> bytes long.

<% rm -f $FORM_uploadfile %>

Don't worry, the file has just been deleted from the web server.

<% else %> You haven't uploaded a file yet. <% fi %>
<%# Uploading a File Displays a form that allows for file uploading. This is accom- plished by using the --upload-limit and by setting the form enc- type to multipart/form-data. If the client sends a file, then some information regarding the file is printed, and then deleted. Otherwise, the form states that the client has not uploaded a file. %>