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
Copy file name to clipboardExpand all lines: docs/how-to/file-uploads.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ title: File Uploads
9
9
<br/>
10
10
<br/>
11
11
12
-
Handle file uploads in your React Router applications. This guide uses some packages from the [Remix The Web][remix-the-web] project to make file uploads easier.
12
+
Handle file uploads in your React Router applications. This guide uses some packages from the [Remix 3][remix-3] project to make file uploads easier.
13
13
14
14
_Thank you to David Adams for [writing an original guide](https://programmingarehard.com/2024/09/06/remix-file-uploads-updated.html/) on which this doc is based. You can refer to it for even more examples._
15
15
@@ -38,7 +38,7 @@ export default [
38
38
`form-data-parser` is a wrapper around `request.formData()` that provides streaming support for handling file uploads.
39
39
40
40
```shellscript
41
-
npm i @mjackson/form-data-parser
41
+
npm i @remix-run/form-data-parser
42
42
```
43
43
44
44
[See the `form-data-parser` docs for more information][form-data-parser]
@@ -57,7 +57,7 @@ You must set the form's `enctype` to `multipart/form-data` for file uploads to w
57
57
import {
58
58
typeFileUpload,
59
59
parseFormData,
60
-
} from"@mjackson/form-data-parser";
60
+
} from"@remix-run/form-data-parser";
61
61
62
62
exportasyncfunction action({
63
63
request,
@@ -93,7 +93,7 @@ export default function Component() {
93
93
`file-storage` is a key/value interface for storing [File objects][file] in JavaScript. Similar to how `localStorage` allows you to store key/value pairs of strings in the browser, file-storage allows you to store key/value pairs of files on the server.
94
94
95
95
```shellscript
96
-
npm i @mjackson/file-storage
96
+
npm i @remix-run/file-storage
97
97
```
98
98
99
99
[See the `file-storage` docs for more information][file-storage]
@@ -103,7 +103,7 @@ npm i @mjackson/file-storage
103
103
Create a file that exports a `LocalFileStorage` instance to be used by different routes.
0 commit comments