Here is a basic overview of the variables included there. params = cgi.FieldStorage() I accidentally made a mistake when typing what the "thefile" variable is. thefile = params["upfile"].file "upfile" is the CGI field that contains the file that I'm uploading. As you can see, the if statement just compares two values, os.path.getsize(thefile) and conf["upmax"], a variable I set that is designated as the maximum file size allowed.
I'm assuming that this is all the information you need. I'm sorry for not including it earlier; I was in a bit of a rush. ^.^ -- http://mail.python.org/mailman/listinfo/python-list