File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/pages/[platform]/build-a-backend/storage/upload-files Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ import { uploadData } from 'aws-amplify/storage';
148
148
try {
149
149
const result = await uploadData ({
150
150
path: " album/2024/1.jpg" ,
151
- // Alternatively, path: ({identityId}) => `album/{identityId}/1.jpg`
151
+ // Alternatively, path: ({identityId}) => `album/$ {identityId}/1.jpg`
152
152
data: file,
153
153
options: {
154
154
onProgress // Optional progress callback.
@@ -704,7 +704,7 @@ const monitorUpload = async () => {
704
704
try {
705
705
const result = await uploadData ({
706
706
path: " album/2024/1.jpg" ,
707
- // Alternatively, path: ({identityId}) => `album/{identityId}/1.jpg`
707
+ // Alternatively, path: ({identityId}) => `album/$ {identityId}/1.jpg`
708
708
data: file,
709
709
options: {
710
710
onProgress : ({ transferredBytes, totalBytes }) => {
You can’t perform that action at this time.
0 commit comments