code: def configure_uploadfor(self, ns, definition):
          
          upload_for = self.create_upload_func(ns, definition, ns.relation_path, Operation.UploadFor)
          upload_for.__doc__ = "Upload a {} for a {}".format(ns.subject_name, ns.object_name)
docs: Register an upload-for relation 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)
          - optionall return a resource
  
          :param ns: the namespace
          :param definition: the endpoint definition