More edits to upload.cgi