We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b603ff + 84cb980 commit 3b796d1Copy full SHA for 3b796d1
AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/StorageMultipartUploadClient.swift
@@ -146,6 +146,10 @@ class DefaultStorageMultipartUploadClient: StorageMultipartUploadClient {
146
Task {
147
do {
148
let partialFileURL = try result.get()
149
+ defer {
150
+ // Clean up the temporary file after we're done with it
151
+ self.fileSystem.removeFileIfExists(fileURL: partialFileURL)
152
+ }
153
154
let operation = AWSS3SigningOperation.uploadPart(partNumber: partNumber, uploadId: uploadId)
155
let preSignedURL = try await serviceProxy.preSignedURLBuilder.getPreSignedURL(
0 commit comments