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:
parent
5b44bfb063
commit
92dd99706d
|
|
@ -617,7 +617,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.post('https://example.com/api/uploadForm', {
|
||||
multipart: form
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue