I can confirm it's working in tip. Thanks for your swift remedy! -Schmidty
On Tue, Jun 21, 2011 at 10:19 PM, Roberto De Ioris <[email protected]> wrote: > >> Updated my uwsgi to 0.9.8 (and rebuilt the server but forgot to update >> python so it's under python 2.6.6) >> >> This line does not work correctly anymore: >> form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) >> >> When attempting to send an image file in the request, boundaries are >> not parsed out of the file, the image's data string is duplicated and >> the next field in the form is incorporated at the end into one >> enormous mass of useless garbage. Yes, I remembered to set >> enctype="multipart/form-data" >> >> Interestingly, the following line works perfectly: >> >> form = cgi.FieldStorage(fp=cStringIO.StringIO >> (environ['wsgi.input'].read(int(environ['CONTENT_LENGTH']))), >> environ=environ) >> >> > > The first style uses readline() (broken, but now fixed, thanks) the second > one uses (obiously) read(). > > Should work flawlessly in latest tip. > > Let me know > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > -- Sent from a REAL computer. _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
