You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Because the Encoder is async iterable, you can use it with different targets. Let's say you want to put FormData content into `Blob`, for that you can write a function like this:
@@ -78,7 +80,9 @@ import {Blob} from "fetch-blob" // For this example I will use v3 of this packag
78
80
importfetchfrom"node-fetch"
79
81
80
82
asyncfunctiontoBlob(form) {
81
-
constencoder=newEncoder(form)
83
+
// Note that Blob will lowercase the boundary string before assign it to Blob#type property. So you may need to bring your own boundary string, which must contain only lowercase alphabetic characters.
0 commit comments