upload function

Module @runic-artifex/views/generated in @runic-artifex/views 0.23.0

function upload(content: Blob, options?: UploadOptions): Promise<BlobRef>;

Uploads a file to the .NET host of the current instance (the page's window, outside RunicInstance.run) and resolves with its reference, which a command whose .NET parameter is a RunicUpload takes. The content streams over HTTP, not over the Bridge, so the Bridge input limit does not apply; the window's upload limit does. Rejects with a BridgeError: unavailable when the host takes no uploads, rejected with reason too-large when the file is larger than the host's limit, or capacity when the window has no room for it, disconnected without a Bridge connection, and failed when the request fails. Rejects with signal.reason when signal aborts.