Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Oct 25, 2024
1 parent 2c8e0ba commit a0c7521
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .changeset/brown-years-heal.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a0c7521

Please sign in to comment.