code: def upload_html(destination, html, name=None):
      
      [project, path, n] = parse_destination(destination)
      try:
          dxfile = dxpy.upload_string(html, media_type="text/html", project=project, folder=path, hidden=True, name=name or None)
          return dxfile.get_id()
      except dxpy.DXAPIError as ex:
          parser.error("Could not upload HTML report to DNAnexus server! ({ex})".format(ex=ex))
docs: Uploads the HTML to a file on the server