Skip to content

Commit a9bd095

Browse files
committed
Add a note about unsupported iterables in Blob constructor in fetch-blob@2 in 3rd example.
1 parent 59cca08 commit a9bd095

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ const encoder = new Encoder(fd)
8888

8989
const options = {
9090
method: "post",
91+
92+
// To use this approach with fetch-blob@2 you probably gonna need to convert the encoder parts output to an array first:
93+
// new Blob([...encoder], {type: encoder.connectType})
9194
body: new Blob(encoder, {type: encoder.contentType})
9295
}
9396

0 commit comments

Comments
 (0)