
內容簡介
**外掛總結:**
Storage for EDD via OneDrive 是 Easy Digital Downloads 的功能擴充套件,可讓您使用 Microsoft OneDrive 雲端儲存空間來儲存和提供數位產品。此外掛與 Microsoft Graph API 無縫整合,提供 OAuth2 認證和安全的下載連結。
### 問與答:
1. 什麼是 Storage for EDD via OneDrive 提供的功能?
- OneDrive 整合:將數位產品安全存儲於 Microsoft OneDrive
- OAuth2 認證:與 Microsoft 帳戶安全容易連接
- 臨時下載連結:通過 @microsoft.graph.downloadUrl 生成安全的臨時下載 URL
- 簡便的文件管理:通過 WordPress 管理介面將文件直接上傳到 OneDrive
- 媒體庫整合:在 WordPress 內從 OneDrive 瀏覽並選擇文件
- 文件夾支援:在文件夾中導覽和整理文件
- 以安全為先:採用 WordPress 安全最佳實踐
- 開發者友好:具有清晰記錄並附有鉤子及過濾器代碼
2. 如何配置 Azure AD 應用程式並連接 OneDrive?
- 步驟 1:註冊 Azure AD 應用程式
- 步驟 2:配置 API 權限
- 步驟 3:新增重定向 URI
- 步驟 4:建立客戶端密碼
- 步驟 5:在 WordPress 中連接 OneDrive
3. 如何在 Easy Digital Downloads 中瀏覽、選擇文件或上傳新文件?
- 瀏覽和選擇文件:進入 Easy Digital Downloads 創建或編輯下載時,選擇「OneDrive Library」裡的文件
- 上傳新文件:在「OneDrive Library」頁籤中點擊「上傳」按鈕,選擇文件並進行上傳
4. 外掛連接的外部服務是什麼?
- 連接至 Microsoft Graph API (OneDrive),管理文件、建立下載連結和處理驗證
- 傳送必要的驗證令牌和文件請求給 Microsoft 服務器
如果您認為此外掛對您有幫助,請考慮在 WordPress.org 留下評論。如果有任何支援或錯誤報告,請使用 WordPress.org 外掛支援論壇。
外掛標籤
開發者團隊
② 後台搜尋「Storage for EDD via OneDrive」→ 直接安裝(推薦)
原文外掛簡介
Storage for EDD via OneDrive is a powerful extension for Easy Digital Downloads that allows you to store and deliver your digital products using Microsoft OneDrive cloud storage. This plugin provides seamless integration with Microsoft Graph API, featuring OAuth2 authentication and secure download links.
Key Features
OneDrive Integration: Store your digital products securely in Microsoft OneDrive
OAuth2 Authentication: Secure and easy connection to your Microsoft account
Temporary Download Links: Generates secure temporary download URLs via @microsoft.graph.downloadUrl
Easy File Management: Upload files directly to OneDrive through WordPress admin
Media Library Integration: Browse and select files from your OneDrive within WordPress
Folder Support: Navigate and organize files in folders
Security First: Built with WordPress security best practices
Developer Friendly: Clean, well-documented code with hooks and filters
Configuration
Register an Azure AD Application at Azure App Registrations
Add API permissions for Microsoft Graph (Files.Read, Files.ReadWrite, User.Read, offline_access)
Set Redirect URI to: https://your-site.com/odse-oauth-callback/
Create a Client Secret and copy the value
Go to Downloads > Settings > Extensions > OneDrive Storage
Enter your Application (client) ID and Client Secret
Save settings and click “Connect to OneDrive”
Usage
Browsing and Selecting Files
When creating or editing a download in Easy Digital Downloads
Click the “Browse OneDrive” button next to the file URL field
Browse your OneDrive storage using the folder navigation
Use the breadcrumb navigation bar to quickly jump to parent folders
Use the search box in the header to filter files by name
Click “Select” to use an existing file for your download
Uploading New Files
In the OneDrive browser, click the “Upload” button in the header row
The upload form will appear above the file list
Choose your file and click “Upload”
After a successful upload, the file URL will be automatically set with the OneDrive prefix
Click the button again to hide the upload form
External services
This plugin connects to Microsoft Graph API (OneDrive) to manage files, create download links, and handle authentication.
It sends the necessary authentication tokens and file requests to Microsoft servers. This happens when you browse your OneDrive files in the dashboard, upload files, or when a customer downloads a file.
Service: Microsoft Graph API (OneDrive)
Used for: Authentication, file browsing, uploading, and generating download links.
Data sent: OAuth tokens, file metadata, file content (during upload).
URLs:
https://graph.microsoft.com (API calls)
https://login.microsoftonline.com (Authentication)
Legal: Terms of Service, Privacy Policy
Support
For support and bug reports, please use the WordPress.org plugin support forum.
If you find this plugin helpful, please consider leaving a review on WordPress.org.
Other Storage Providers
Looking for a different storage provider? Check out our other plugins:
Storage for EDD via Box – Use Box for your digital product storage
Storage for EDD via Dropbox – Use Dropbox for your digital product storage
Storage for EDD via S3-Compatible – Use S3-compatible services like MinIO, DigitalOcean Spaces, Linode, Wasabi, and more
Privacy Policy
This plugin requires authorization to access your Microsoft OneDrive account for file storage and retrieval. It does not collect or store any personal data beyond the OAuth tokens needed to maintain the connection. All file storage and delivery is handled through Microsoft’s secure infrastructure.
