Skip to content

[FilePicker]Files keep loading when previewing all files in OneDrive. #1994

Open
@wangliantaoTTT

Description

@wangliantaoTTT

Category
[]Enhancement

[x] Bug

[]Question

Version
Please specify what version of the library you are using:
3.21.0

Expected / Desired Behavior / Question
When using the FilePicker control from @pnp/spfx-controls-react, users should be able to browse and select files from OneDrive normally. The OneDrive tab should load and display the user's files or folders for selection.

Observed Behavior
All other tabs in the FilePicker — such as Recent, Site, and Upload — work as expected and load properly.
When switching to the OneDrive tab in the FilePicker, it shows a loading spinner indefinitely and never displays the files.
Meanwhile, no error is thrown in the UI, but a backend call fails with the following response:

{
"error": {
"code": "-2147024894, System.IO.FileNotFoundException",
"message": "ファイルが見つかりません。" // File not found
}
}

Add the FilePicker control to a custom SPFx property pane or component.

Ensure OneDrive tab is visible (hideOneDriveTab: false).

Click on the OneDrive tab.

Observe that it stays stuck in loading and never shows any file list.

Image

Metadata

Metadata

Labels

status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions