From a0c75211da8d1223fb501d12e7327b7eb8840ce6 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Sat, 26 Oct 2024 00:30:01 +0200 Subject: [PATCH] changeset --- .changeset/brown-years-heal.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .changeset/brown-years-heal.md diff --git a/.changeset/brown-years-heal.md b/.changeset/brown-years-heal.md new file mode 100644 index 000000000..62204fd91 --- /dev/null +++ b/.changeset/brown-years-heal.md @@ -0,0 +1,25 @@ +--- +'@vercel/blob': minor +'vercel-storage-integration-test-suite': minor +--- + +Add onUploadProgress feature to put/upload + +You can now track the upload progress in Node.js and all major browsers when +using put/upload in multipart, non-multipart and client upload modes. Basically +anywhere in our API you can upload a file, then you can follow the upload +progress. + +Here's a basic usage example: + +``` +const blob = await put('big-file.pdf', file, { + access: 'public', + onUploadProgress(event) { + console.log(event.loaded, event.total, event.percentage); + } +}); +``` + +Fixes #543 +Fixes #642