Skip to content

Commit 1029b11

Browse files
authored
Update index.mdx (#7730)
1 parent 0e96b81 commit 1029b11

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/storage/upload-files

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/storage/upload-files/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ import { uploadData } from 'aws-amplify/storage';
148148
try {
149149
const result = await uploadData({
150150
path: "album/2024/1.jpg",
151-
// Alternatively, path: ({identityId}) => `album/{identityId}/1.jpg`
151+
// Alternatively, path: ({identityId}) => `album/${identityId}/1.jpg`
152152
data: file,
153153
options: {
154154
onProgress // Optional progress callback.
@@ -704,7 +704,7 @@ const monitorUpload = async () => {
704704
try {
705705
const result = await uploadData({
706706
path: "album/2024/1.jpg",
707-
// Alternatively, path: ({identityId}) => `album/{identityId}/1.jpg`
707+
// Alternatively, path: ({identityId}) => `album/${identityId}/1.jpg`
708708
data: file,
709709
options: {
710710
onProgress: ({ transferredBytes, totalBytes }) => {

0 commit comments

Comments
 (0)