Merge pull request #2648 from ZYinMD/patch-19

fix typo in 5-network/02-formdata
This commit is contained in:
Ilya Kantor 2021-07-22 23:47:48 +03:00 committed by GitHub
commit 823eea4dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ The server reads form data and the file, as if it were a regular form submission
[FormData](https://xhr.spec.whatwg.org/#interface-formdata) objects are used to capture HTML form and submit it using `fetch` or another network method.
We can either create `new FormData(form)` from an HTML form, or create a object without a form at all, and then append fields with methods:
We can either create `new FormData(form)` from an HTML form, or create an object without a form at all, and then append fields with methods:
- `formData.append(name, value)`
- `formData.append(name, blob, fileName)`