Update docs/src/api/class-apirequestcontext.md

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Yury Semikhatsky <yurys@chromium.org>
This commit is contained in:
Yury Semikhatsky 2024-04-25 16:16:42 -07:00 committed by GitHub
parent f4b760968a
commit b8f044d2ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,7 +236,7 @@ const form = new FormData();
form.set('name', 'John');
form.append('name', 'Doe');
// Send two file fields with the same name.
form.append('file', new File(['onsole.log(2024);'], 'f1.js', { type: 'text/javascript' }));
form.append('file', new File(['console.log(2024);'], 'f1.js', { type: 'text/javascript' }));
form.append('file', new File(['hello'], 'f2.js', { type: 'text/plain' }));
await request.fetch('https://example.com/api/uploadForm', {
multipart: form