
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? but I read twisted.web2 is not stable(that too, I may have to change my code for a shift). Any sample references (using twisted.web api) to receive a file from client is appreciated.
Thanks in advance.
Raj.
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

On 03:40 pm, k_r_a_j_kumar@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
participants (2)
-
exarkun@twistedmatrix.com
-
Raj kumar