Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Sep 14, 2024
1 parent 0b2ed43 commit 7f8aec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ import ky from 'ky';

const response = await ky.post('https://example.com/api/upload', {
body: largeFile,
onUploadProgress: (progress) => {
onUploadProgress: progress => {
console.log(`${progress.percent * 100}% - ${progress.transferredBytes} of ${progress.totalBytes} bytes`);
}
});
Expand Down

0 comments on commit 7f8aec3

Please sign in to comment.