Re: upload and receive

[email protected]
Newsgroups gmane.comp.python.twisted.web
Message-ID <20100125160018.1898.1097305600.divmod.xquotient.600@localhost.localdomain>
On 03:40 pm, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.