diff options
Diffstat (limited to 'docs/guides')
-rw-r--r-- | docs/guides/binary/blob-to-stream.md | 2 | ||||
-rw-r--r-- | docs/guides/binary/blob-to-string.md | 2 | ||||
-rw-r--r-- | docs/guides/http/file-uploads.md | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/guides/binary/blob-to-stream.md b/docs/guides/binary/blob-to-stream.md index 37a916ab3..ff2b3fbe0 100644 --- a/docs/guides/binary/blob-to-stream.md +++ b/docs/guides/binary/blob-to-stream.md @@ -2,7 +2,7 @@ name: Convert a Blob to a ReadableStream --- -The [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) class provides a number of methods for consuming its contents in different formats, inluding `.stream()`. This returns `Promise<ReadableStream>`. +The [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) class provides a number of methods for consuming its contents in different formats, including `.stream()`. This returns `Promise<ReadableStream>`. ```ts const blob = new Blob(["hello world"]); diff --git a/docs/guides/binary/blob-to-string.md b/docs/guides/binary/blob-to-string.md index 05692c32e..0b334af66 100644 --- a/docs/guides/binary/blob-to-string.md +++ b/docs/guides/binary/blob-to-string.md @@ -2,7 +2,7 @@ name: Convert a Blob to a string --- -The [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) class provides a number of methods for consuming its contents in different formats, inluding `.text()`. +The [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) class provides a number of methods for consuming its contents in different formats, including `.text()`. ```ts const blob = new Blob(["hello world"]); diff --git a/docs/guides/http/file-uploads.md b/docs/guides/http/file-uploads.md index 7cc0e742a..ce23b5d0c 100644 --- a/docs/guides/http/file-uploads.md +++ b/docs/guides/http/file-uploads.md @@ -59,7 +59,7 @@ Listening on http://localhost:4000 Our form will send a `POST` request to the `/action` endpoint with the form data. Let's handle that request in our server. -First we use the [`.formData()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData) method on the incoming `Request` to asynchonously parse its contents to a `FormData` instance. Then we can use the [`.get()`](https://developer.mozilla.org/en-US/docs/Web/API/FormData/get) method to extract the value of the `name` and `profilePicture` fields. Here `name` corresponds to a `string` and `profilePicture` is a `Blob`. +First we use the [`.formData()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData) method on the incoming `Request` to asynchronously parse its contents to a `FormData` instance. Then we can use the [`.get()`](https://developer.mozilla.org/en-US/docs/Web/API/FormData/get) method to extract the value of the `name` and `profilePicture` fields. Here `name` corresponds to a `string` and `profilePicture` is a `Blob`. Finally, we write the `Blob` to disk using [`Bun.write()`](/docs/api/file-io#writing-files-bun-write). |