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:15:59 -07:00 committed by GitHub
parent 4b5f6b66d9
commit 75bf1e5be4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -229,7 +229,7 @@ var data = new Dictionary<string, object>() {
await Request.FetchAsync("https://example.com/api/createBook", new() { Method = "post", DataObject = data });
```
The common way to send file(s) in the body of a request is to upload them as form fields with `multipart/form-data` encoding. Use [FormData] to construct request body and pass it to the request as `multipart` parameter:
The common way to send file(s) in the body of a request is to upload them as form fields with `multipart/form-data` encoding. Use [FormData] to construct request body and pass it to the request as [`option: multipart`] parameter:
```js
const form = new FormData();