kernl API
    Preparing search index...

    Function askUploadConsent

    • Put an upload to the person as an upload.file ask: the file's name, type, size, hash and servers, and kernl's summary of them. An applet the shell cannot name is refused without asking.

      Parameters

      • host: AskHost | AskChannel

        The host whose renderer draws upload.file, or an ask channel.

      • applet: AppletIdentity | undefined

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

      • details: UploadDetails

        The file and its servers.

      • OptionalwindowId: string

        The window that asked, whose answer it is.

      Returns Promise<boolean>

      Whether the person allowed it.

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