You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS SDK for Swift currently does not provide a out-of-the-box way to track multipart upload transfer progress at the moment. We've looked into making an utility wrapper for S3Client called something like S3TransferManager in the past, which would provide this feature.
I'll bring this up to the team and let you know if the work gets prioritized / picked up, thanks.
Describe the feature
I would like to have ability to get multipart upload progress. How can to do this?
Use Case
func multipartUpload(bucket: String, key: String, fileUrl: URL, uuid: String, meta: Meta, finishBlock: @escaping FinishBlock) async {
logger.info("AWSUploadRun start...", subsystem: .upload)
do {
let identityResolver = try await self.getTempCredentials()
let region = "us-east-1"
let configuration = try await S3Client.S3ClientConfiguration(awsCredentialIdentityResolver: identityResolver, region: region)
configuration.region = "us-east-1"
let client = S3Client(config: configuration)
let fileData = try Data(contentsOf: fileUrl)
let fileSize = fileData.count
let partSize = 5 * 1024 * 1024
let expectedParts = Array(1...(fileSize / partSize + (fileSize % partSize == 0 ? 0 : 1)))
let objectKey = key
var metadata : [String: String] = [:]
for (metaKey, metaValue) in meta.data {
metadata[metaKey] = "(metaValue)".mimeEncode
}
Proposed Solution
No response
Other Information
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: