code: def upload_to_host(self, filename, hostname):
          
          result = self._run_command(
              ["plowup", hostname, filename],
              stderr=open("/dev/null", "w")
          )
  
          result['host_name'] = hostname
          if 'error' not in result:
              result['url'] = self.parse_output(hostname, result.pop('output'))
  
          return result
docs: Upload a file to the given host.
  
          This method relies on 'plowup' being installed on the system.
          If it succeeds, this method returns a dictionary with the host name,
          and the final URL. Otherwise, it returns a dictionary with the
          host name and an error flag.
  
          :param filename: The filename of the file to upload.
          :type filename: str
          :param hostname: The host you are uploading the file to.
          :type hostname: str
          :returns: Dictionary containing information about upload to host.
          :rtype: dict