Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the finishupload endpoint is always called #1387

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

alexchx
Copy link
Contributor

@alexchx alexchx commented Feb 8, 2024

In rare condition, the stream length can be N times of the chunkSizeBytes, then the bytesRead of the last read will be 0 and jump out of the while loop, as a result, the upload wouldn't be finalized by this endpoint finishupload, and leave a broken file in SharePoint.

@jansenbe jansenbe self-assigned this Feb 12, 2024
@jansenbe jansenbe added the area: model 📐 Related to the core SDK models label Feb 12, 2024
@jansenbe
Copy link
Contributor

Thanks for submitting this fix @alexchx , I'll process your PR in the coming days (just back from a break)

jansenbe added a commit that referenced this pull request Feb 12, 2024
@jansenbe jansenbe merged commit 43acd38 into pnp:dev Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants