mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-13 17:58:56 -06:00
[PR #21536] feat: add support for multi-files & folder selection in OneDrive integration #81002
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21536
Author: @schneider-f
Created: 2/17/2026
Status: 🔄 Open
Base:
dev← Head:feat/onedrive-multi-files📝 Commits (2)
18e784dfeat: enable multiple file selection from OneDrive6392e33feat: add max file count validation for OneDrive file selection📊 Changes
2 files changed (+161 additions, -17 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+38 -8)📝
src/lib/utils/onedrive-file-picker.ts(+123 -9)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added support for multi-file selection and folder selection (including recursive folder uploads) in the OneDrive/SharePoint integration. These improvements streamline the process of uploading multiple files or entire folders in a single operation, for both personal and business accounts.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Related to discussion #21303, this PR adds support for 1) "Multi-file & Folder Selection" and paved the way for 2) "SharePoint Integration in Knowledge Bases".
Testing:
Features were tested using both personal and work accounts in a Microsoft Test Environment.
If you want to easily test the changes :
Setup the Environment:
Follow the official Open WebUI tutorial to configure your app and retrieve the required credentials (client IDs, tenant IDs, etc.).
Run the Test Image :
docker run -d
-p 3000:8080
-e ENV=dev
-e HF_HUB_OFFLINE=1
-e OFFLINE_MODE=true
-e ENABLE_API_KEY=true
-e ENABLE_OLLAMA_API=false
-e ENABLE_ONEDRIVE_INTEGRATION=true
-e ONEDRIVE_CLIENT_ID_PERSONAL=YOUR-PERSONAL-CLIENT_ID
-e ONEDRIVE_CLIENT_ID_BUSINESS=YOUR-BUSINESS-CLIENT_ID
-e ONEDRIVE_SHAREPOINT_TENANT_ID=YOUR-TENANT-ID
-e ONEDRIVE_SHAREPOINT_URL=YOUR-SHAREPOINT-URL
-e WEBUI_URL=http://localhost:8080
ghcr.io/schneider-f/open-webui:onedrive-multi-files
Screenshots or Videos
Multi-file upload :

Folder upload :

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.