Whenever I try to upload a 17 GB file from my browser, Chrome crashes after reaching 8 GB due to memory exhaustion.
import { PutObjectCommandInput, S3Client } from '@aws-sdk/client-s3';
import { Progress, Upload } from "@aws-sdk/lib-storage";
const uploadParams: PutObjectCommandInput = {
Bucket: 'my-bucket',
Key: 'my-file',
Body: file, // represents the File selected using <input type="file">
};
const upload: Upload = new Upload({
client: s3Client,
params: uploadParams,
});
// initiate the upload process
await upload.done();
Can anyone point out what I might be doing wrong here?