Skip to content

Type Alias: UploadFn ​

ts
type UploadFn = (file, context) => Promise<UploadResult>;

Store a file and return where it can be loaded from.

Parameters ​

ParameterType
fileFile
contextUploadContext

Returns ​

Promise<UploadResult>