basalt / files/src / UploadContent
Type Alias: UploadContent
> UploadContent = Uint8Array | AsyncIterable<Uint8Array | string> | ReadableStream<Uint8Array>
Defined in: files/src/files.ts:150
What Files.upload accepts: the whole file in memory, or a stream of its bytes — a Node Readable, any AsyncIterable<Uint8Array>, or a web ReadableStream. A stream is size-checked, hashed and sniffed as it arrives, and abandoned the moment it passes validate.maxSize.