[Twisted-web] twisted-web file upload processing on the server

Matthew Thorley ruach at chpc.utah.edu
Tue Dec 13 14:09:18 MST 2005

> IIRC, request.content should contain what you are looking for.  Note that
> twisted.web doesn't handle file uploads optimally; twisted.web2 does a
> better job in that particular area.

I gave that a shot earlier and didn't get much.

print request.content
<cStringIO.StringO object at 0xb7742ac0>

print request.content.readline()

print request.content.readlines()

I have tried this with different files, and also double checked that
the file I was uploading wasn't empty.

Matthew Thorley

More information about the Twisted-web mailing list