Configuration
accessKeyId: Aliyun access key IDaccessKeySecret: Aliyun access key secretbucket: OSS bucket namearea: bucket region (endpoint area)path: storage path prefix
Usage
- Select Aliyun OSS under Media in the console.
- Fill in the access keys, bucket, region and storage path.
- Run the connectivity test to verify the configuration.
- After uploading, images are written to the bucket and a URL is returned.
Connectivity test
- Run the connectivity test under Media for a saved or in-progress configuration.
- The backend simulates uploading a probe image and deletes it immediately, confirming the keys, bucket and region are reachable.
- Once it passes, you can safely switch to this provider.
Notes
- Use least-privilege access keys rather than a primary account key.
- Never commit keys to version control or expose them in frontend code.
- Mind bucket read/write permissions and CORS so the blog can load images.
- Watch storage cost and delivery speed when hosting many large files.