File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments