[Twisted-web] upload and receive
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Mon Jan 25 11:00:18 EST 2010
On 03:40 pm, k_r_a_j_kumar at yahoo.co.in wrote:
>Hi,
>Currently I'm using twisted.web api for my http server.
>If I have to implement a file upload from client, is it possible to
>receive a file at server end using twisted.web? or should I move to
>twisted.web2?
Sure. See the "content" attribute of the request object. You don't
need to, and should not, switch to twisted.web2.
http://jcalderone.livejournal.com/49707.html doesn't cover file uploads,
but it does go over some of the other things you need to do to handle
POSTs, which you'll probably be interested in.
Jean-Paul
More information about the Twisted-web
mailing list