An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hello Yuval Artzi
Thank you for reaching out to Microsoft Support!!
SharePoint Online does not guarantee support for partial downloads in all scenarios. The behavior of the Range header may vary depending on file type, server configuration, and other factors as explained below:
- File-Type Specific Behavior: Certain file types like
.xlsor.xlsxmight not support partial downloads due to specific handling mechanisms in SharePoint. - Server Limitation: The server backend may not consistently support byte-range requests for all files. This is evident if the
Accept-Ranges: bytesheader is absent in the response. - Direct Use of
@microsoft.graph.downloadUrl: The@microsoft.graph.downloadUrlbypasses the Graph API and directly interacts with the file storage backend. This backend may not fully support theRangeheader for certain scenarios, especially for files stored in specific SharePoint configurations.
There’s no specific configuration required on your end if it’s a limitation. Known issues include:
- Partial downloads not being reliably supported for certain file types (e.g.,
.xls/.xlsx). - The behavior of
@microsoft.graph.downloadUrlvarying based on backend server capabilities. - Permissions and token usage are generally not the cause if you’re able to access the full file but cannot request partial content.
These limitations are inherent to the service in certain scenarios, and no additional configuration will enable partial downloads if the server does not support them.
Since this feature/functionality is presently not available, you can submit a feature request idea using support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.