WSGI middleware to manage upload of files