Thursday, June 12, 2025
HomeiOS Developmentamazon s3 - AWS Amplify add to s3 utilizing iOS framework extremely...

amazon s3 – AWS Amplify add to s3 utilizing iOS framework extremely sluggish

[ad_1]

I’ve an iOS amplify app. I am making an attempt to add photographs to my bucket utilizing the next code:

let dataString = "My Information"
let information = dataString.information(utilizing: .utf8)!
let storageOperation = Amplify.Storage.uploadData(key: "ExampleKey", information: information)
let progressSink = storageOperation.progressPublisher.sink { progress in print("Progress: (progress)") }
let resultSink = storageOperation.resultPublisher.sink {
    if case let .failure(storageError) = $0 {
        print("Failed: (storageError.errorDescription). (storageError.recoverySuggestion)")
    }
}
receiveValue: { information in
    print("Accomplished: (information)")
}

With a secure quick wifi connection, the typical add time for information which can be about 300kb is 30 seconds.

That is unacceptably sluggish. Is there anyway to enhance add speeds right here?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments