Skip to content

Commit

Permalink
Add note about extending File
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Oct 19, 2024
1 parent dfaf56f commit 6df81a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/advanced/persistence-and-uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ In a browser, the `File` object may often be retrieved via a
[file input](https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications),
for example.

> **Note:** If you are using your own version of `File` and `Blob` ensure you are properly extending the
> so it can be properly identified as a file.
The `@urql/core@4` package supports File Uploads natively, so we won't have to do any installation
or setup work. When `urql` sees a `File` or a `Blob` anywhere in your `variables`, it switches to
a `multipart/form-data` request, converts the request to a `FormData` object, according to the
Expand Down

0 comments on commit 6df81a4

Please sign in to comment.