handle multipart requests with chunked encoding