May 19th, 2004, 11:42 AM
Heres a very basic upload script staight form my head that should work, although untested. If you want to accept image uploads then you will need to write the file out using the wb flag but the basics are there. You might also want to check that the file doesnt already exist, this way you dont loose anything from a file conflict.
import cgi, os
form = cgi.FieldStorage()
if 'upload' in form:
name = os.path.split(form['upload'].filename)
programming language development: www.netytan.com – Hula