Skip to content

Commit 056d491

Browse files
committed
chore: reverting reference to StorageManager in deprecated props section
1 parent bcb5767 commit 056d491

File tree

1 file changed

+4
-4
lines changed
  • docs/src/pages/[platform]/connected-components/storage/fileuploader

1 file changed

+4
-4
lines changed

docs/src/pages/[platform]/connected-components/storage/fileuploader/react.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,27 @@ The example below shows configuring the FileUploader to upload to the `protected
9292
<Accordion.Content>
9393
Versions 3.0.18 and earlier use `accessLevel` and an optional `path` prop in place of the required `path`. `accessLevel` refers to the [Amplify Storage access level](https://docs.amplify.aws/gen1/react/build-a-backend/storage/configure-access/), which is `'guest' | 'protected' | 'private'`, and `path` is a `string`.
9494
```tsx
95-
<FileUploader
95+
<StorageManager
9696
accessLevel="guest"
9797
path="images/"
9898
maxFileCount={1}
9999
/>
100-
<FileUploader
100+
<StorageManager
101101
accessLevel="private"
102102
maxFileCount={1}
103103
/>
104104
```
105105

106106
To migrate to a newer version, replace `accessLevel` with `path`. If you were using `path` already, append `public`, `private` or `protected` to the beginning of the path.
107107
```diff
108-
<FileUploader
108+
<StorageManager
109109
- accessLevel="guest"
110110
+ path="public/"
111111
maxFileCount={1}
112112
/>
113113
```
114114
```diff
115-
<FileUploader
115+
<StorageManager
116116
- accessLevel="private"
117117
- path="images/"
118118
+ path={({ identityId }) => `private/${identityId}/images/`}

0 commit comments

Comments
 (0)