> Does anyone know how to read the "multipart/form-data" posted by a form?
I'm using mod_python 3.1 and Apache 2.
I looked at the docs of the request object but there is no description
on how to read multipart data.
I also tried google with "modpython multipart" but there are only a few
hits - I could not use them.
this is a question for the mod_python ML, but anyway ;)
I'm using
data = cgi.FieldStorage(fp=req,
headers=req.headers_in,
keep_blank_values=True,
environ={'REQUEST_METHOD':'POST'})
which works fine for me. Later I've seen that mod_python has it's own
implementation of FieldStorage, but I have not tried it yet.