Skip to content

Commit 063bb96

Browse files
authored
Merge pull request #1829 from baooab/patch-6
fix typo
2 parents 162280b + 35ff499 commit 063bb96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/02-formdata/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let formData = new FormData([form]);
1212

1313
If HTML `form` element is provided, it automatically captures its fields.
1414

15-
The special thing about `FormData` is that network methods, such as `fetch`, can accept a `FormData` object as a body. It's encoded and sent out with `Content-Type: form/multipart`.
15+
The special thing about `FormData` is that network methods, such as `fetch`, can accept a `FormData` object as a body. It's encoded and sent out with `Content-Type: multipart/form-data`.
1616

1717
From the server point of view, that looks like a usual form submission.
1818

@@ -81,7 +81,7 @@ for(let [name, value] of formData) {
8181

8282
## Sending a form with a file
8383

84-
The form is always sent as `Content-Type: form/multipart`, this encoding allows to send files. So, `<input type="file">` fields are sent also, similar to a usual form submission.
84+
The form is always sent as `Content-Type: multipart/form-data`, this encoding allows to send files. So, `<input type="file">` fields are sent also, similar to a usual form submission.
8585

8686
Here's an example with such form:
8787

0 commit comments

Comments
 (0)