Skip to content

OneDrive File Picker SDK V8 fails to display user's Albums #91

@JuhaszBalint2

Description

@JuhaszBalint2

Describe the bug
The Albums page of the OneDrive File Picker is empty. When navigating to the Albums section through the Photos pivot, it shows an empty view with "This folder is empty" message even when albums exist in the user's OneDrive account.
To Reproduce
Steps to reproduce the behavior:

Open the application that integrates with OneDrive File Picker v8
Click on the OneDrive button to launch the file picker
Authenticate with a Microsoft account that has access to OneDrive
Navigate to the Photos section in the left navigation
Click on Albums tab/section
Observe that the Albums page is completely blank with a "This folder is empty" message

Expected behavior
The Albums page should display all albums available in the user's OneDrive account, allowing users to browse and select photos from their albums just like they can with the other sections (Recent, My Files, etc.).
Screenshots

Image

Details
We are implementing the OneDrive File Picker v8 in an Electron application using the recommended approach from the Microsoft documentation. We use the proper authentication flow and can successfully access other sections of the picker (like Recent files, My Files).
The issue specifically occurs only in the Albums section, which seems to be affected by CORS errors and API authentication issues that prevent proper data loading. Browser console shows multiple errors like:
Access to fetch at 'https://substrate.office.com/recommended/api/beta/edgeworth/recent?order=recent&top=20&apps=Word%2CExcel%2CPowerPoint%2COneNote%2CVisio%2CPdf&rs=en%2DUS' from origin 'https://onedrive.live.com' has been blocked by CORS policy
We've attempted to use various configurations including:

Explicitly enabling photos and albums in the picker configuration
Setting appropriate scopes (OneDrive.ReadWrite and Files.ReadWrite)
Bypassing the complex SDK with a direct URL approach

The application is developed with Electron (with proper CORS handling) and TypeScript.
Additional context

The issue only affects the Albums section; other sections of the File Picker work correctly
We've verified that albums exist in the OneDrive account being tested
The same behavior occurs across multiple user accounts, suggesting it's not account-specific
We've observed that the picker makes API calls to substrate.office.com which fail with CORS errors
When using the direct URL approach with legacy picker, the issue might be circumvented but this doesn't provide the full expected functionality of the v8 picker

Our implementation follows the official Microsoft documentation for the OneDrive File Picker v8, but the Albums functionality appears to have specific issues with API access in the Electron environment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions