Skip to content

Conversation

@adrian05-ms
Copy link
Contributor

Fixes #1923

Changes proposed in this pull request

  • Moved from a single read on InputStream.read() to a while loop until read bytes are equal to the InputStream length to ensure the stream is fully read and avoid corrupted bytes when uploading

##Test
Uploaded 5MB file with the current changes no corrupted bytes at the end of the file
image

baywet
baywet previously approved these changes Jul 4, 2025
@adrian05-ms adrian05-ms marked this pull request as ready for review July 4, 2025 17:54
@adrian05-ms adrian05-ms requested a review from a team as a code owner July 4, 2025 17:54
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@baywet baywet merged commit e0dbff6 into main Jul 4, 2025
11 of 12 checks passed
@baywet baywet deleted the fix/verify-stream-is-fully-read branch July 4, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LargeFileUploadTask may not fully read input stream, uploaded file is corrupted

3 participants