Skip to content

Commit 06b8b1d

Browse files
authored
Merge pull request javascript-tutorial#2906 from vabushkevich/form-multipart-fix
fix: replace `form/multipart` with `multipart/form-data`
2 parents ed8e41a + 21d5bc7 commit 06b8b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/01-fetch/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ To make a `POST` request, or a request with another method, we need to use `fetc
195195
- **`method`** -- HTTP-method, e.g. `POST`,
196196
- **`body`** -- the request body, one of:
197197
- a string (e.g. JSON-encoded),
198-
- `FormData` object, to submit the data as `form/multipart`,
198+
- `FormData` object, to submit the data as `multipart/form-data`,
199199
- `Blob`/`BufferSource` to send binary data,
200200
- [URLSearchParams](info:url), to submit the data in `x-www-form-urlencoded` encoding, rarely used.
201201

@@ -304,7 +304,7 @@ Response properties:
304304
Methods to get response body:
305305
- **`response.text()`** -- return the response as text,
306306
- **`response.json()`** -- parse the response as JSON object,
307-
- **`response.formData()`** -- return the response as `FormData` object (form/multipart encoding, see the next chapter),
307+
- **`response.formData()`** -- return the response as `FormData` object (`multipart/form-data` encoding, see the next chapter),
308308
- **`response.blob()`** -- return the response as [Blob](info:blob) (binary data with type),
309309
- **`response.arrayBuffer()`** -- return the response as [ArrayBuffer](info:arraybuffer-binary-arrays) (low-level binary data),
310310

0 commit comments

Comments
 (0)