Appearance
Function: updateFileUploadState()
ts
function updateFileUploadState(
ctx: Context,
result: unknown,
bufferCache?: Map<string, ArrayBuffer>): Promise<void>;Defined in: src/UI/utils/updateFileUploadState.ts:6
Convert resolved validFiles (DroppedMwFile-shaped) into MwFiles by fetching the file bytes via fetchFileChunks. The fileUpload template calls this for you; only call it directly when composing a FileUpload block by hand via render().
Parameters
| Parameter | Type |
|---|---|
ctx | Context |
result | unknown |
bufferCache? | Map<string, ArrayBuffer> |
Returns
Promise<void>