import { ObjectUploader } from "https://dotland.deno.dev/x/s3_lite_client@0.7.0/object-uploader.ts";
Stream a file to S3
We assume that TransformChunkSizes has been used first, so that this stream will always receive chunks of exactly size "partSize", except for the final chunk.
Note that the total size of the upload doesn't have to be known in advance, as long as TransformChunkSizes was used first. Then this ObjectUploader will decide based on the size of the first chunk whether it is doing a single-request upload or a multi-part upload.
Constructors
new
ObjectUploader(unnamed 0: { client: Client; bucketName: string; objectName: string; partSize: number; metadata: Record<string, string>; })Properties
readonly
getResult: () => UploadedObjectInfo