Kelvin Cheong writes:
import cgi
form = cgi.FieldStorage()
This gives you an empty "FieldStorage"
fileitem = form["userTABPIX1"]
In it, "userTABPIX1" is unknown.
fname = tempfile.mktemp()
fp=open(fname,'w')
fp.write(fileitem.file.read())
fp.close()
Give
Dear All,
I have this python module for uploading an image from a client to the
server (which would be subsequently inserted into a MySQL database, which
is still on the midst of being resolved). I''m trying to import this into
Zope as an External MEthod. It's contents are as follows :