On May 15, 12:57 pm, John Smallberries <[email protected]> wrote: > I've inserted a simple middleware class into my wsgi stack and > suddenly the POST dictionary is empty when handling a file upload form > submission. > > class MyMiddleware(object): > def __init__ > (self,app,config=None,environ_key='my.stuff',**kwargs): > self.app = app > > def __call__(self, environ, start_response): > req = Request(environ) > log().info("handling request %s" % req) > log().info("request.POST= %s" % req.POST) > resp = req.get_response(self.app) > return resp(environ, start_response)
I'm not sure, but POST args might not be part of environ. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
