UploadFile
type UploadFile = Blob | Uint8Array;
File content accepted by the upload helpers.
Blob/File— browser, or any runtime with a globalBlob(Node 18+).Uint8Array— raw bytes (requiresfileName). A NodeBufferis aUint8Array, so reading a file withfsand passing the result works without conversion.
Both are universal types, so the published .d.ts stays free of Node-only globals
(Buffer, NodeJS.*) and the helper pulls in no Node built-ins — keeping the browser
bundle clean.