CCLEE OSS Guide: Sync WordPress Media to Alibaba Cloud OSS
CCLEE OSS is a WordPress plugin for Alibaba Cloud OSS: media library uploads β images, PDFs, videos, every attachment type β are automatically synced to your own OSS bucket, and frontend media URLs are rewritten to an OSS or CDN domain (images additionally get srcset and every thumbnail size covered). Files are served straight from OSS/CDN instead of your web server, so pages load faster.
The plugin is commercially licensed: your license token is bound to your site domain β paste it on the settings page to activate (verification is offline, so no constant connection to a license server is needed). Plugin updates are distributed from the CCLEE update server and are only available to sites with a valid license.
What CCLEE OSS Does for Youβ
Faster media. Images are the biggest share of traffic on most pages, and attachment downloads eat bandwidth too. Once enabled, media files are served straight from your OSS/CDN domain β with a CDN acceleration domain, visitors download them from nearby edges and pages open faster.
A lighter web server. Image and attachment downloads no longer consume your server's bandwidth. Server resources stay with the site application and dynamic requests, so traffic peaks are easier to handle.
Fully automatic, zero changes to existing content. Uploads sync as you make them β images, PDFs, videos, all media types β and frontend URLs are rewritten automatically. Themes, the editor, and already-published posts need no changes; originals and every thumbnail size are covered for images.
A built-in safety net. Any OSS failure falls back to local storage and the site keeps running. Your media lives in your own bucket and the plugin never deletes data already in OSS β license expiry only sends new uploads back to local.
Who It's Forβ
- Media-heavy sites: blogs, portfolios, WooCommerce stores (lots of product and variation images), sites offering PDF catalogs or downloads
- Site owners struggling with slow image loading or tight server bandwidth
- Users with an Alibaba Cloud account who want media in their own bucket (storage and traffic are billed by Alibaba Cloud at official prices β your data stays entirely yours)
Features at a Glanceβ
| Feature | What it does |
|---|---|
| Upload-and-sync | Media uploaded in wp-admin (images, PDFs, videos, all types) is pushed to OSS automatically β no manual migration |
| All sizes covered | Originals plus every generated thumbnail; sizes rebuilt by regenerate-thumbnails are covered too |
| Automatic URL rewrite | Original, srcset, and sized-image URLs point to your CDN domain (or the bucket's public domain if none is set); attachment download links are rewritten too |
| Delete sync (optional) | Optionally delete the OSS objects when a media attachment is deleted |
| Silent fallback | Any OSS failure falls back to local storage without breaking native WordPress behavior |
| Licensed updates | Update packages come from the CCLEE update server with sha256 verification β valid licenses only |
Quick Startβ
Prerequisitesβ
- WordPress 6.4+, PHP 8.0+
- An Alibaba Cloud account with a bucket created (read/write permission: public-read)
- A license token issued by CCLEE for your site domain
Step 1: Install and Activate the Pluginβ
- In wp-admin, go to Plugins β Add New β Upload Plugin
- Choose
cclee-oss.zipβ click Install Now - Click Activate when the install finishes
Step 2: Paste Your License Tokenβ
- Go to Settings β CCLEE OSS
- Paste the license token delivered by CCLEE into License Token
- Click Save Changes
Tokens are bound to your domain
The token is issued for your site domain (compared after ignoring www and the port). On save, the plugin verifies the signature and checks the domain on the spot β a mismatch is rejected. If your site moves to a new domain, contact CCLEE for a new token.
Step 3: Create a RAM Sub-Account (Least Privilege)β
The plugin only needs two permissions: write and delete objects in your bucket. Create a dedicated RAM user with least privilege (create the policy β create the user β grant it; about 10 minutes) β the full walkthrough lives in Alibaba Cloud RAM Setup for CCLEE OSS.
You'll end up with an AccessKey ID / Secret pair β you'll need them in the next step.
Step 4: Fill in the OSS Settingsβ
Back on Settings β CCLEE OSS, fill in:
| Setting | Value |
|---|---|
| AccessKey ID / AccessKey Secret | The keys saved in Step 3 |
| Bucket | Your bucket name |
| Endpoint | The public endpoint of the bucket's region (see the bucket overview page), e.g. oss-ap-southeast-1.aliyuncs.com (Singapore); on an ECS instance in the same region, prefer the internal endpoint |
| CDN Domain | Optional. If your bucket has a CDN acceleration domain, enter it and media URLs will use it; leave empty to use the bucket's public domain |
Then click Save Changes.
Step 5: Verify with a Test Uploadβ
- In wp-admin, go to Media β Add New and upload a test image
- Click the image in the media library to see its file URL (or open a frontend page that shows it)
- If the image URL points to your OSS/CDN domain, everything is configured correctly
License & Updatesβ
Expiry and Renewalβ
- The token carries an expiry date; 14 days before it expires, a renewal notice appears at the top of wp-admin
- To renew, just paste the new token on the settings page and save β nothing else to do
What Happens on Expiry or Revocationβ
The plugin degrades gracefully β it never performs destructive actions:
- New uploads are stored locally and the site keeps running normally
- Files already uploaded to OSS and their URLs are unaffected; the frontend keeps serving them as before
- Nothing in your bucket is ever deleted
Offline Grace Periodβ
License status travels with the plugin's update check (about every 12 hours). A temporary network outage does not disable the plugin immediately β you get a 14-day grace period counted from the last successful check, and connectivity restores full status automatically.
Plugin Updatesβ
- The WordPress update check runs automatically; when a new version ships, update normally from the Plugins page
- Update packages are verified by sha256 on download β a mismatch aborts the install
- Only sites with a valid license receive new versions
Behavior Togglesβ
| Toggle | Default | What it does |
|---|---|---|
| Keep Local Copy | On | Keep local copies after sync. The current version always keeps local files (as a safety net); the toggle is reserved for a future release |
| Sync Delete to OSS | Off | When an attachment is deleted, also delete the OSS objects (original + all thumbnails) |
Local files are the safety net
If upload, delete, or URL rewriting fails at any point, the plugin silently falls back to native WordPress behavior (files stay local) β an OSS outage never takes your site down.
FAQβ
What does CCLEE OSS cost?β
Two parts: the plugin license is purchased from CCLEE, while storage and traffic for your media files are billed by Alibaba Cloud directly at official prices β the data sits in your own bucket, so CCLEE adds no markup.
Do non-image files (PDFs, videos, attachments) get synced too?β
Yes. Every file uploaded through the media library is synced to OSS, and attachment download links are rewritten to OSS/CDN automatically. Thumbnail sub-sizes and srcset coverage are an extra layer that applies to images only.
Are thumbnails (sub-sizes) uploaded to OSS too?β
Yes. The original plus every generated size is pushed, including sizes rebuilt by plugins like regenerate-thumbnails, and the srcset URLs for each size are rewritten to OSS as well.
Will images already on OSS be lost when the license expires?β
No. On expiry or revocation the plugin degrades gracefully: only new uploads switch to local storage. Files already on OSS and their URLs stay exactly as they are, the frontend keeps serving images, and nothing is deleted from your bucket.
Does an OSS upload failure break publishing?β
No. If upload, delete, or URL rewriting fails at any point, the plugin silently falls back to native WordPress behavior (the file stays in the local media library) β wp-admin and the frontend are unaffected.
Is the license still valid after a domain change or site migration?β
Tokens are bound to the site domain. After a domain change the old token will fail verification β contact CCLEE for a re-issue against the new domain, then paste the new token and save.
Can I delete local copies and keep only OSS?β
The current version always keeps local copies (that is the stability safety net). The "Keep Local Copy" toggle is already in place, and local-copy deletion is planned for a future release.
Should the endpoint be public or internal?β
On an Alibaba Cloud ECS instance in the same region as the bucket, prefer the internal endpoint (faster, no public traffic); in all other cases (external servers, different regions) use the public endpoint. Both are listed on the bucket overview page.
How do I get plugin updates?β
The WordPress update check runs automatically (about every 12 hours); when a new version is available, update normally from the Plugins page β no manual downloads. Updates are only available to sites with a valid license.
Get a License & Supportβ
CCLEE OSS is licensed per site domain, with purchase, renewal, and re-issue for domain changes available. Contact us to get licensed:
Contact CCLEE