File upload example
form = cgi.FieldStorage()
<form action="/cgi-bin/test.py" method="POST" enctype="multipart/form-data">
<input type="file" name="filename">
elif form.has_key("filename"):
data = item.file.read() # read contents of file
print cgi.escape(data) # rather dumb action