changed cgi

master
Michael Murtaugh 5 years ago
parent 84aaf87a03
commit 0b17ed1171

@ -17,7 +17,7 @@ UPLOADS = "/var/www/uploads/"
def upload (inputname, upload_dir):
form = cgi.FieldStorage()
if not form.has_key(inputname): return
if not inputname in form: return
fileitem = form[inputname]
if not fileitem.file: return
fp = os.path.join(upload_dir, fileitem.filename)

Loading…
Cancel
Save