mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
fix(uploads): log when the Buzz workspace temp file can't be deleted
This commit is contained in:
+3
-1
@@ -618,7 +618,9 @@ class AndroidMediaUploader(
|
||||
uploadBlossom(clean?.uri ?: finalUri, compressed.contentType, clean?.size ?: compressed.size, alt, contentWarningReason, server.baseUrl, null, null, account, forcedSigner, context, SharedUploadAuth(), buzzWorkspace = true)
|
||||
.also { if (it is UploadingState.Error) updateState(0.0, it) }
|
||||
} finally {
|
||||
clean?.file?.delete()
|
||||
clean?.file?.let { file ->
|
||||
if (!file.delete()) Log.w("UploadOrchestrator") { "Failed to delete sanitized temp file: ${file.path}" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user