Skip to content

Commit de30864

Browse files
committed
Update 3rd example.
1 parent e1081cb commit de30864

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ form.set("file", new File(["Using files is class amazing"], "file.txt"))
8686
form.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
8787

8888
// Note 1: When using with native Blob or fetch-blob@2 you might also need to generate boundary string for your FormDataEncoder instance
89-
// because Blob will lowercase value of the `type` option and default boundary generator produces a string with both lower and upper cased alphabetical characters.
89+
// because Blob will lowercase value of the `type` option and default boundary generator produces a string with both lower and upper cased alphabetical characters. Math.random() should be enough to fix this:
90+
// const encoder = new FormDataEncoder(form, String(Math.random()))
9091
const encoder = new FormDataEncoder(form)
9192

9293
const options = {

0 commit comments

Comments
 (0)