BetaBetaReset the uploader (clear files). Should be called by the uploader when all files are done.
BetaSubscribe to upload events from the uploader
BetaUpdate the status of a file. Will be emitted to subscribers.
BetaOptionaloptions: { onChange?: (patch: unknown) => void; schemaType?: SchemaType }OptionalonChange?: (patch: unknown) => voidThe uploader may send patches directly to the field Typed 'unknown' as we don't have patch definitions in sanity/types yet.
OptionalschemaType?: SchemaTypeThe schema type of the field the asset is being uploaded to. May be of interest to the uploader to read file and image options.
Abort the upload of a file