From 324febe20bb785cb3bb269fc77afad221d0fb349 Mon Sep 17 00:00:00 2001 From: Ekjot <43255916+ekjotmultani@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:05:20 -0800 Subject: [PATCH] reverted variable name change --- .../lib/src/amplify_storage_s3_dart_impl.dart | 4 ++-- .../src/platform_impl/download_file/download_file_html.dart | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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,