Skip to content

Commit 7efb023

Browse files
committed
Disable chunked for single part and download worker as well
1 parent 55a80c9 commit 7efb023

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/worker/DownloadWorker.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ internal class DownloadWorker(
7070
return s3.withConfig {
7171
interceptors += DownloadProgressListenerInterceptor(downloadProgressListener)
7272
enableAccelerate = transferRecord.useAccelerateEndpoint == 1
73+
enableAwsChunked = false
7374
}.getObject(getObjectRequest) { response ->
7475
val totalBytes = (response.body?.contentLength ?: 0L) + downloadedBytes
7576
transferRecord.bytesTotal = totalBytes

aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/worker/SinglePartUploadWorker.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ internal class SinglePartUploadWorker(
4545
return s3.withConfig {
4646
interceptors += UploadProgressListenerInterceptor(uploadProgressListener)
4747
enableAccelerate = transferRecord.useAccelerateEndpoint == 1
48+
enableAwsChunked = false
4849
}.putObject(putObjectRequest).let {
4950
Result.success(outputData)
5051
}

0 commit comments

Comments
 (0)