kernl API
    Preparing search index...

    Function askUploadConsent

    • Put an upload to the person through the host's consent prompt. An applet the shell cannot name is refused without asking.

      Parameters

      • host: Pick<KernlHost, "presentConsent">

        Supplies presentConsent.

      • applet: AppletIdentity | undefined

        The asking applet's identity, if the shell knows it.

      • details: UploadDetails

        The file and its servers.

      Returns Promise<boolean>

      Whether the person allowed it.

      ask: (windowId, details) => askUploadConsent(host, identityOf(windowId), details);