Upload files with wsgi

hidura at gmail.com hidura at gmail.com
Wed Sep 29 16:29:40 CEST 2010


That is what i get: FieldStorage(None, None, [])

On Sep 29, 2010 8:39am, hidura at gmail.com wrote:
> Python3k give me an error doing that.

> On Sep 29, 2010 3:55am, Richard Thomas chardster at gmail.com> wrote:
> > On Sep 28, 11:31 pm, Hidura hid... at gmail.com> wrote:
> >
> > > Hello, i have a project on Python3k, and i have a very big problem i
> >
> > > don' t find how take an upload file i am using the wsgiref lib, and or
> >
> > > theres any way to connect to the client in order to get the file by
> >
> > > myself?
> >
> > >
> >
> > > Thank you
> >
> > > Diego Hidalgo.
> >
> > >
> >
> > > --
> >
> > > Enviado desde mi dispositivo móvil
> >
> > >
> >
> > > Diego I. Hidalgo D.
> >
> >
> >
> > 'wsgiref' doesn't do that part of request handling. You want to use
> >
> > the 'cgi' module to parse the POST data:  
> http://docs.python.org/library/cgi.html
> >
> >
> >
> > Remember to set the enctype on your tags to multipart/form-
> >
> > data.
> >
> >
> >
> > Chard.
> >
> > --
> >
> > http://mail.python.org/mailman/listinfo/python-list
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100929/40a93e98/attachment.html>


More information about the Python-list mailing list