[WordPress] 外掛分享: Yctvn Media Offload for Cloudflare R2

WordPress 外掛 Yctvn Media Offload for Cloudflare R2 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Yctvn Media Offload for Cloudflare R2」是 2025-10-04 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-10-05,距離現在已有 143 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kangta911 |

外掛標籤

cdn | media | storage | cloudflare | object storage |

內容簡介

總結:Yctvn Media Offload for Cloudflare R2 將您的 WordPress 媒體庫與 Cloudflare R2 Storage 無縫整合,以優於傳統解決方案價格一小部分的企業級 CDN 交付。

問題與答案:
Q: Yctvn Media Offload for Cloudflare R2 提供了哪些主要功能?
A: 自動媒體上傳、批量同步、CDN URL 重寫、圖像大小支援、響應式圖像、文章內容重寫、AWS Signature V4 安全驗證、除錯模式。

Q: 選擇 R2 Storage 的原因是什麼?
A: 成本效益高、全球性能優越、支援 S3 標準 API、可靠的商業級基礎設施,擁有99.9% 的正常運行時間 SLA。

Q: 使用 Yctvn Media Offload for Cloudflare R2 的需求是什麼?
A: WordPress 5.0 或更新版本、PHP 8.0 或更新版本、啟用 R2 的 Cloudflare 帳戶、R2 API 憑證(Access Key ID 和 Secret Access Key)。

原文外掛簡介

Yctvn Media Offload for Cloudflare R2 seamlessly integrates your WordPress media library with Cloudflare R2 Storage, providing enterprise-grade CDN delivery at a fraction of the cost of traditional solutions.
📸 New to Cloudflare R2? Check out the Screenshots section for a complete visual setup guide with step-by-step instructions!
Key Features

Automatic Media Upload: Automatically upload new media files to R2 storage as they’re added to WordPress
Bulk Sync: Migrate existing media library to R2 with one-click bulk sync
CDN URL Rewriting: Serve all media from Cloudflare’s global CDN network
Image Size Support: Upload and serve all WordPress image sizes including thumbnails
Responsive Images: Full support for srcset and responsive images
Post Content Rewriting: Automatically rewrite image URLs in post content
AWS Signature V4: Secure authentication using industry-standard protocols
Debug Mode: Comprehensive logging for troubleshooting

Why Choose R2 Storage?

Cost Effective: No egress fees – pay only for storage
Global Performance: Leverage Cloudflare’s worldwide CDN network
S3 Compatible: Works with standard S3 APIs
Reliability: Enterprise-grade infrastructure with 99.9% uptime SLA

Requirements

WordPress 5.0 or higher
PHP 8.0 or higher (compatible with 8.0, 8.1, 8.2, 8.3, 8.4)
Cloudflare account with R2 enabled
R2 API credentials (Access Key ID and Secret Access Key)

Getting Started
Visual Guide: See the Screenshots section below for a complete step-by-step visual guide!
Follow these 3 simple steps to connect your WordPress site to Cloudflare R2:
Step 1: Create R2 Bucket
1. Log in to Cloudflare Dashboard
2. Click on “R2” in the left sidebar
3. Click “Create bucket”
4. Enter a unique bucket name (e.g., “my-wordpress-media”)
5. Choose a location (optional)
6. Click “Create bucket”
Step 2: Get Your Credentials
You need 4 pieces of information from Cloudflare:
A. Account ID:
– In R2 dashboard, look at the top right corner
– Copy the “Account ID” (format: 32 alphanumeric characters)
B. Access Key ID & Secret Access Key:
1. In R2 dashboard, click “Manage R2 API Tokens”
2. Click “Create API token”
3. Give it a name (e.g., “WordPress Media Plugin”)
4. Under Permissions, select “Object Read & Write”
5. (Optional) Under “Specify bucket(s)”, you can limit to your specific bucket
6. Click “Create API token”
7. IMPORTANT: Copy and save both:
– Access Key ID (shows immediately)
– Secret Access Key (shows only once – save it now!)
C. Bucket Name:
– The name you created in Step 1 (e.g., “my-wordpress-media”)
D. Public URL (CDN URL):
– Go to your R2 bucket → Settings
– Under “Public access”, click “Allow Access”
– Your public URL will be: https://pub-[hash].r2.dev
– OR connect a custom domain under “Custom Domains” (e.g., https://cdn.yoursite.com)
Step 3: Configure Plugin
1. Install and activate this plugin
2. Go to Settings → Yctvn Media Offload
3. Enter all 4 credentials from Step 2:
– Account ID
– Access Key ID
– Secret Access Key
– Bucket Name
– Public URL (your R2 public URL or custom domain)
4. Check “Auto Offload” to automatically upload new media
5. Check “Enable URL Rewrite” to serve media from R2/CDN
6. Click “Save Settings”
7. Use “Bulk Sync” to upload existing media
Additional Information
Support
For support, please use the WordPress.org support forum.
Buy Me a Coffee
If you find this plugin helpful, consider buying me a coffee ☕
Your support helps maintain and improve this plugin!
Contributing
This plugin is open source and welcomes contributions from the community.
Privacy
This plugin does not collect any personal data. Media files are transferred directly between your WordPress site and your Cloudflare R2 account.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Yctvn Media Offload for Cloudflare R2」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | trunk |

延伸相關外掛(你可能也想知道)

  • Safe SVG 》Safe SVG 可以讓你安心地在 WordPress 中上傳 SVG 檔案!, 它能夠讓你允許上傳 SVG 檔案的同時,確保它們已經經過消毒以防止 SVG/XML 弱點影響你的網站。此外...。
  • FileBird – WordPress Media Library Folders & File Manager 》Media Folder 是史上最佳的 WordPress 外掛,可讓您使用資料夾對媒體庫進行分類。, 我們可以使用拖放式組織方式整理 WordPress 媒體庫資料夾。, 試用 | 升級...。
  • Media Cleaner: Clean your WordPress! 》Media Cleaner 是一個強大的外掛,它可以幫助你清理 WordPress 媒體庫中未使用的媒體條目和文件,以及修復損壞的條目。內置回收站功能讓你可以在永久刪除之前...。
  • Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
  • Default Featured Image 》在媒體設定頁面上新增一個預設的特色圖像。如果沒有設定任何特色圖像,這個預設的特色圖像就會顯示。就這麼簡單。, 查看常見問題以獲取基本問題資訊。, 如果...。
  • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
  • Phoenix Media Rename 》通過使用「Phoenix Media Rename」外掛,將您的媒體檔案重新命名,極大地提高您的 SEO。, 在Phoenix Media Rename 官方頁面上提供了完整的使用和設置指南。。
  • Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
  • Media Sync 》您可以掃描所有在uploads目錄中的檔案,並查看哪些檔案實際上在媒體庫中,哪些檔案只是停留在那裡。然後,您可以選擇要將哪些檔案導入數據庫,從而使它們在媒...。
  • Media File Renamer: Rename for better SEO (AI-Powered) 》從儀表板直接重命名和移動檔案,可以逐個或批量進行操作,還可以設置自動重命名檔案的功能,提高 SEO、整理 WordPress、讓生活更美好。如需更多信息,請訪問...。
  • Easy Watermark 》Easy Watermark 可以在圖片上傳到 WordPress 媒體庫時自動加上浮水印。您還可以手動添加浮水印到現有的圖片(全部一次或每個圖片)。浮水印可以是圖像、文字...。
  • Clean Image Filenames 》這個外掛可以在您上傳至媒體庫時自動將檔名中的語言重音符號轉換。轉換後的字符將會變成網頁和伺服器友好、無語言重音的字元。, 功能, , 將瑞典語、丹麥語、...。
  • Search & Replace Everything by WPCode – Find and Replace Media, Text, Links, and More 》```html, <ul>, <li>WPCode 的 Search & Replace Everything 讓您可以直接從 WordPress 管理員有效管理網站的內容。這個工具對於網站遷移、...。
  • WP User Avatars 》允許註冊使用者上傳並選擇自己的頭像。, 建議外掛, 如果您喜歡這個外掛,您可能會喜歡以下這些外掛!, , WP User Profiles, WP User Activity, WP User Avata...。
  • Media Library Categories 》此外掛可允許在 WordPress 媒體庫中使用分類。啟用後,媒體庫中會顯示下拉式的分類清單。, 您可以使用大量動作進行多項目的分類更改、新增或移除分類。, 在使...。

文章
Filter
Apply Filters
Mastodon