fix(uploads): log when the Buzz workspace temp file can't be deleted

This commit is contained in:
davotoula
2026-10-02 20:12:30 +02:00
parent 0407829f9d
commit 7e13b19d72
@@ -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}" }
}
}
}
}