def configure_upload(self, ns, definition):
        """
        Register an upload endpoint.

        The definition's func should be an upload function, which must:
        - accept kwargs for path data and query string parameters
        - accept a list of tuples of the form (formname, tempfilepath, filename)
        - optionally return a resource

        :param ns: the namespace
        :param definition: the endpoint definition

        """
        upload = self.create_upload_func(ns, definition, ns.collection_path, Operation.Upload)
        upload.__doc__ = "Upload a {}".format(ns.subject_name)
Register an upload endpoint.

        The definition's func should be an upload function, which must:
        - accept kwargs for path data and query string parameters
        - accept a list of tuples of the form (formname, tempfilepath, filename)
        - optionally return a resource

        :param ns: the namespace
        :param definition: the endpoint definition