From 84fc9b137de3093b9d628a27a220bdee113d6029 Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Tue, 7 Jan 2025 20:23:10 -0800 Subject: [PATCH] doc(s3) little improvements and corrections (#16226) --- docs/api/s3.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/api/s3.md b/docs/api/s3.md index 4c88579a801995..46484e7e552539 100644 --- a/docs/api/s3.md +++ b/docs/api/s3.md @@ -150,7 +150,7 @@ const writer = s3file.writer({ queueSize: 10, // Upload in 5 MB chunks - partSize: 5, + partSize: 5 * 1024 * 1024, }); for (let i = 0; i < 10; i++) { await writer.write(bigFile); @@ -614,9 +614,10 @@ const credentials = { const stat = await S3Client.stat("my-file.txt", credentials); // { +// etag: "\"7a30b741503c0b461cc14157e2df4ad8\"", +// lastModified: 2025-01-07T00:19:10.000Z, // size: 1024, -// etag: "1234567890", -// lastModified: new Date(), +// type: "text/plain;charset=utf-8", // } ``` @@ -661,7 +662,7 @@ const response = await fetch("s3://my-bucket/my-file.txt", { endpoint: "https://s3.us-east-1.amazonaws.com", }, headers: { - "x-amz-meta-foo": "bar", + "range": "bytes=0-1023", }, }); ```