Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(utils/parse-multipart-form-data): add extra clarification #10221

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@
- takagimeow
- tanerijun
- tascord
- tats-u
- TheRealAstoo
- therealflyingcoder
- thomasheyenbrock
Expand Down
2 changes: 2 additions & 0 deletions docs/utils/parse-multipart-form-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ Remix has two utilities to create `uploadHandler`s for you:

These are fully featured utilities for handling fairly simple use cases. It's not recommended to load anything but quite small files into memory. Saving files to disk is a reasonable solution for many use cases. But if you want to upload the file to a file hosting provider, then you'll need to write your own.

Other handlers than `unstable_createMemoryUploadHandler` can't store non-file values as `string` objects. You should combine them by `unstable_composeUploadHandlers` if there're non-file entries in the request.

[the-browser-file-api]: https://developer.mozilla.org/en-US/docs/Web/API/File
[the-blob-api]: https://developer.mozilla.org/en-US/docs/Web/API/Blob