code: def from_sample(sample):
      
      upload_config = sample.get("upload")
      if upload_config:
          approach = _approaches[upload_config.get("method", "filesystem")]
          for finfo in _get_files(sample):
              approach.update_file(finfo, sample, upload_config)
      return [[sample]]
docs: Upload results of processing from an analysis pipeline sample.