Skip to content

Commit 75cb4a8

Browse files
authored
fix(storage): foreground upload speed (#2925)
1 parent a9e290d commit 75cb4a8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Service/Storage/AWSS3StorageService+UploadBehavior.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ extension AWSS3StorageService {
5757
var request = URLRequest(url: preSignedURL)
5858
request.cachePolicy = .reloadIgnoringLocalCacheData
5959
request.httpMethod = "PUT"
60+
request.networkServiceType = .responsiveData
6061

6162
request.setValue(contentType, forHTTPHeaderField: "Content-Type")
6263

AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/StorageMultipartUploadClient.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class DefaultStorageMultipartUploadClient: StorageMultipartUploadClient {
100100
var request = URLRequest(url: preSignedURL)
101101
request.cachePolicy = .reloadIgnoringLocalCacheData
102102
request.httpMethod = "PUT"
103+
request.networkServiceType = .responsiveData
103104

104105
/*
105106
let userAgent = AWSServiceConfiguration.baseUserAgent().appending(" MultiPart")

0 commit comments

Comments
 (0)