1#!/usr/bin/env python 2 3import cgi 4 5print('Content-type: text/plain') 6print('') 7 8form = cgi.FieldStorage() 9 10print('Filename: %s' % form['up'].filename) 11print('Name: %s' % form['name'].value) 12print('Content: %s' % form['up'].file.read()) 13