Beta
Beta
Reset the uploader (clear files). Should be called by the uploader when all files are done.
Beta
Subscribe to upload events from the uploader
Beta
Update the status of a file. Will be emitted to subscribers.
Beta
Optional
options: { onChange?: (patch: unknown) => void; schemaType?: SchemaType }Optional
onChange?: (patch: unknown) => voidThe uploader may send patches directly to the field Typed 'unknown' as we don't have patch definitions in sanity/types yet.
Optional
schemaType?: 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