UploadAttachmentArgs
type UploadAttachmentArgs = UploadAttachmentCommonArgs &
| {
file: Blob;
fileName?: string;
}
| {
file: Uint8Array;
fileName: string;
};
Arguments for attachments.upload. A discriminated union on file enforces, at
compile time, that raw Uint8Array bytes are accompanied by a fileName (there is
no name to infer), while a Blob/File may omit it.