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
* Parses a `Request` body into a `FormData` object. This is useful for accessing the data contained
80
-
* in a HTTP `POST` request generated by a HTML `<form>` element.
79
+
* Parses a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) body into a [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData)
80
+
* object. This is useful when accessing the data contained in a HTTP `multipart/form-data` request
81
+
* generated by a HTML `<form>` element.
81
82
*
82
-
* The major difference between this function and using the built-in `request.formData()` API is the
83
-
* ability to customize the handling of file uploads. Instead of buffering the entire file in memory,
84
-
* the `uploadHandler` allows you to store the file on disk or in a cloud storage service.
83
+
* The main difference between this function and using [the built-in `request.formData()` API](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData)
84
+
* is the ability to customize the handling of file uploads. Instead of buffering the entire file in
85
+
* memory, the `uploadHandler` allows you to stream the file to disk or a cloud storage service.
85
86
*/
86
87
exportasyncfunctionparseFormData(
87
88
request: Request,
@@ -96,14 +97,15 @@ export async function parseFormData(
0 commit comments