#!/bin/sh # uploader.sh if [ "$REQUEST_METHOD" = "GET" ]; then cat < Sample File Upload Form

Sample File Upload Form

Please fill in the file-upload form below


File to upload:

Notes about the file:

to upload the file!

END exit 0 elif [ "$REQUEST_METHOD" = "POST" ]; then DIR=uploads mv $1 ../$DIR FILE=/$DIR/`basename $1` cat <
Your file have been uploaded!

File #1: $FILE


Go Back
END exit 0 fi # printenv -- just prints its environment echo -e 'Content-Type: text/html; charset=utf8\r\n\r' echo '
'
env
echo '
' exit 1