From ca0cb7b184aa342c6acbb2066907651df0dd3596 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 25 Apr 2024 16:16:49 -0700 Subject: [PATCH] Update docs/src/api/class-apirequestcontext.md Co-authored-by: Dmitry Gozman Signed-off-by: Yury Semikhatsky --- docs/src/api/class-apirequestcontext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/api/class-apirequestcontext.md b/docs/src/api/class-apirequestcontext.md index 6f7a6ccfaa..2c98fc91e2 100644 --- a/docs/src/api/class-apirequestcontext.md +++ b/docs/src/api/class-apirequestcontext.md @@ -237,7 +237,7 @@ form.set('name', 'John'); form.append('name', 'Doe'); // Send two file fields with the same name. form.append('file', new File(['console.log(2024);'], 'f1.js', { type: 'text/javascript' })); -form.append('file', new File(['hello'], 'f2.js', { type: 'text/plain' })); +form.append('file', new File(['hello'], 'f2.txt', { type: 'text/plain' })); await request.fetch('https://example.com/api/uploadForm', { multipart: form });