code: def get_upload_path(finfo, sample_info, config):
      Dry" update the file: only return the upload path
      """
      try:
          storage_dir = _get_storage_dir(finfo, config)
      except ValueError:
          return None
      
      if finfo.get("type") == "directory":
          return _get_dir_upload_path(finfo, storage_dir)
      else:
          return _get_file_upload_path(finfo, storage_dir)
docs: Dry" update the file: only return the upload path