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 {
94
94
* const form = new FormData()
95
95
*
96
96
* 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" ))
98
98
* form.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
99
99
*
100
100
* const encoder = new FormDataEncoder(form)
@@ -284,7 +284,7 @@ export class FormDataEncoder {
284
284
* const form = new FormData()
285
285
*
286
286
* 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" ))
288
288
* form.set("fileFromPath", await fileFromPath("path/to/a/file.txt"))
289
289
*
290
290
* const encoder = new FormDataEncoder(form)
You can’t perform that action at this time.
0 commit comments