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(
707
707
{
708
708
path: ' album/2024/1.jpg' ,
709
709
options: {
710
- onProgress: (progress) {
710
+ onProgress : (progress ) => {
711
711
console .log (` Download progress: ${ (progress .transferredBytes / progress .totalBytes ) * 100 } %` );
712
712
}
713
713
}
@@ -956,7 +956,7 @@ download
956
956
``` dart
957
957
final operation = Amplify.Storage.downloadData(
958
958
path: const StoragePath.fromString('public/example.txt'),
959
- onProgress: (progress) {
959
+ onProgress: (progress) => {
960
960
safePrint('fraction totalBytes: ${progress.totalBytes}');
961
961
safePrint('fraction transferredBytes: ${progress.transferredBytes}');
962
962
safePrint('fraction completed: ${progress.fractionCompleted}');
You can’t perform that action at this time.
0 commit comments