Skip to content

Commit 43ff3dc

Browse files
committed
chore(upload-client): update readme
1 parent 87efbb2 commit 43ff3dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: packages/upload-client/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ Or `Blob` like this:
457457
```ts
458458
const uri = 'URI_TO_FILE'
459459
const blob = await fetch(uri).then((res) => res.blob())
460-
uploadFile(blob, { publicKey: 'YOUR_PUBLIC_KEY' })
460+
uploadFile(blob, {
461+
publicKey: 'YOUR_PUBLIC_KEY',
462+
fileName: 'file.txt',
463+
contentType: 'text/plain'
464+
})
461465
```
462466

463467
## Testing

0 commit comments

Comments
 (0)