File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/pages/[platform]/build-a-backend/storage/download-files Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ const { body, eTag } = await downloadData(
707707 {
708708 path: ' album/2024/1.jpg' ,
709709 options: {
710- onProgress: (progress) {
710+ onProgress : (progress ) => {
711711 console .log (` Download progress: ${ (progress .transferredBytes / progress .totalBytes ) * 100 } %` );
712712 }
713713 }
@@ -956,7 +956,7 @@ download
956956``` dart
957957final operation = Amplify.Storage.downloadData(
958958 path: const StoragePath.fromString('public/example.txt'),
959- onProgress: (progress) {
959+ onProgress: (progress) => {
960960 safePrint('fraction totalBytes: ${progress.totalBytes}');
961961 safePrint('fraction transferredBytes: ${progress.transferredBytes}');
962962 safePrint('fraction completed: ${progress.fractionCompleted}');
You can’t perform that action at this time.
0 commit comments