I work with Pyramid and I tried to do the same. After a while I came up with this solution.
from cStringIO import StringIO from cgi import FieldStorage fs = FieldStorage(fp=request['wsgi.input'], environ=request) f = StringIO(fs.value) im = Image.open(f)
I'm not sure if this is โcorrectโ, but it seems to work.
source share