diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart b/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart index 5bf1a6022a..50429c95c1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart @@ -217,7 +217,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface defaultPluginOptions: const S3DownloadDataPluginOptions(), ); - options = StorageDownloadDataOptions( + final s3Options = StorageDownloadDataOptions( pluginOptions: s3PluginOptions, bucket: options?.bucket, ); @@ -225,7 +225,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface final bytes = BytesBuilder(); final downloadTask = storageS3Service.downloadData( path: path, - options: options, + options: s3Options, onProgress: onProgress, onData: bytes.add, ); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart index 14875bd816..a77ee6f8c5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart @@ -41,7 +41,6 @@ S3DownloadFileOperation downloadFile({ ); } -// TODO(ekjotm): add bucket option to function once getURL update has been implemented Future _downloadFromUrl({ required StoragePath path, required AWSFile localFile,