Skip to content

Commit 9ba4781

Browse files
committed
Fixes for File usage in readme.md
1 parent d1a109a commit 9ba4781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import fetch from "node-fetch"
8181
const fd = new FormData()
8282

8383
fd.set("field", "Just a random string")
84-
fd.set("file", new File(["Using files is class amazing"]))
84+
fd.set("file", new File(["Using files is class amazing"], "file.txt"))
8585
fd.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
8686

8787
const encoder = new Encoder(fd)

0 commit comments

Comments
 (0)