def doHandleXhrFilePost(self, request, response, streamVariable,
                variableName, owner, contentLength):
        # These are unknown in filexhr ATM, maybe add to Accept header that
        # is accessible in portlets
        filename = 'unknown'
        mimeType = filename
        stream = request.getInputStream()

        try:
            # safe cast as in GWT terminal all variable owners are expected
            # to be components.
            component = owner
            if component.isReadOnly():
                raise UploadException('Warning: file upload ignored'
                        ' because the component was read-only')

            forgetVariable = self.streamToReceiver(stream, streamVariable,
                    filename, mimeType, contentLength)
            if forgetVariable:
                self.cleanStreamVariable(owner, variableName)
        except Exception, e:
            self.handleChangeVariablesError(self._application, owner, e,
                    dict())

        self.sendUploadResponse(request, response)
Determine the maximum resources requested by `assembly`.
dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/gwt/server/abstract_communication_manager.py/AbstractCommunicationManager.doHandleXhrFilePost--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocationManager.max_request