Skip to content

Sharepoint REST download returns incomplete content on aspx files and large files #5247

@slavag

Description

@slavag

Category

  • Bug

Describe the bug

We're using :
/_api/web/GetFileById('<file_guid>')/$value
Or
/_api/web/GetFileByServerRelativeUrl('')/$value
We see that on many aspx files and on large files, the content that is returned is incomplete.
In the files properties I see one size and when entire stream is read. We see it constantly in Site Pages aspx files, and from time to time on large files. Network issues are eliminated. Some other people are also complaining about this issue :
https://stackoverflow.com/questions/59737754/sharepoint-rest-api-returns-incomplete-content-of-file-during-downloading

Expected behavior

Returned content length should be exactly the same as in file properties form Sharepoint.

Developer environment

REST API

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APIstatus:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.type:archive-old-issueIssues which are closed as tool old for active worktype:bug-confirmedConfirmed bug, not working as designed / expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions