You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 5-network/02-formdata/article.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
2
# FormData
3
3
4
-
This chapter is about sending HTML forms: with or without files, with additional fields and so on. [FormData](https://xhr.spec.whatwg.org/#interface-formdata)is the object to handle that.
4
+
This chapter is about sending HTML forms: with or without files, with additional fields and so on. [FormData](https://xhr.spec.whatwg.org/#interface-formdata)objects can help with that.
5
5
6
6
The constructor is:
7
7
```js
@@ -10,9 +10,9 @@ let formData = new FormData([form]);
10
10
11
11
If HTML `form` element is provided, it automatically captures its fields.
12
12
13
-
Network methods, such as `fetch`can use `FormData` objects as a body, they are automatically encoded and sent with `Content-Type: form/multipart`.
13
+
Network methods, such as `fetch`accept `FormData` objects as a body. They are encoded and sent out with `Content-Type: form/multipart`.
14
14
15
-
So from the server point of view, that's a usual form submission.
15
+
So, from the server point of view, that looks like a usual form submission.
0 commit comments