jaba at findyourcore.com
jaba at findyourcore.com
Thu May 18 18:25:23 EDT 2006
heres my code: #########upload.py######### from mod_python import util import sys def handler(req): sys.stdout=sys.stderr=req form=util.FieldStorage(req) if form.has_key("file"):print form.list[0].file.getvalue() print "<form method=post><input type=file name=file></form>" ########################### the problem is, it only returns the filename, not the file contents. Whats wrong?
|