Skip to content

Commit a94e5e4

Browse files
committed
Small fix for in code examples.
1 parent 18d2d61 commit a94e5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/FormDataEncoder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class FormDataEncoder {
9494
* const form = new FormData()
9595
*
9696
* form.set("field", "Just a random string")
97-
* form.set("file", new File(["Using files is class amazing"]))
97+
* form.set("file", new File(["Using files is class amazing"], "file.txt"))
9898
* form.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
9999
*
100100
* const encoder = new FormDataEncoder(form)
@@ -284,7 +284,7 @@ export class FormDataEncoder {
284284
* const form = new FormData()
285285
*
286286
* form.set("field", "Just a random string")
287-
* form.set("file", new File(["Using files is class amazing"]))
287+
* form.set("file", new File(["Using files is class amazing"], "file.txt"))
288288
* form.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
289289
*
290290
* const encoder = new FormDataEncoder(form)

0 commit comments

Comments
 (0)