':type entity: IqProtocolEntity'

def sendIq(self, entity):

    if ((entity.getType() == IqProtocolEntity.TYPE_SET) and (entity.getXmlns() == 'w:m')):
        self._sendIq(entity, self.onRequestUploadSuccess, self.onRequestUploadError)
