analytics-kotlin
analytics-kotlin copied to clipboard
Fix Windows file deletion by closing stream before removeFile
Follow-up to #284
Move storage.removeFile() call outside the use{} block to ensure InputStream is fully closed before attempting file deletion. On Windows, files cannot be deleted while file handles remain open, causing silent deletion failures and infinite upload retries of the same batch files.