Zloj S3 – Offload Media to Amazon S3 & S3-Compatible Storage
Zloj S3 moves your media library to cloud object storage. Store uploads in Amazon S3, Cloudflare R2, DigitalOcean Spaces, Wasabi, Backblaze B2, MinIO or any other S3-compatible service, serve them from your bucket or CDN domain, and free up disk space on your server. Features Automatic offload of ne
Zloj S3 moves your media library to cloud object storage. Store uploads in Amazon S3, Cloudflare R2, DigitalOcean Spaces, Wasabi, Backblaze B2, MinIO or any other S3-compatible service, serve them from your bucket or CDN domain, and free up disk space on your server.
Features
- Automatic offload of new uploads and all image sizes
- Works with any S3-compatible storage, not only Amazon
- Serve media from a custom public host or CDN domain
- Bulk migration of existing uploads, with optional removal of local copies
- Objects removed from storage when attachments are deleted
- Lock credentials and settings with PHP constants
- One-click connection test
- Lightweight bundled AWS SDK (S3 client only)
Zloj S3 sends uploaded media to an S3-compatible bucket, rewrites attachment URLs, and removes objects when attachments are deleted.
It is built for any S3-compatible endpoint (not only Amazon), can lock credentials with PHP constants, and can migrate existing uploads in AJAX batches with an optional cleanup of identical local copies.
The plugin stays idle until the required settings are filled: API host, public host, bucket, access key, and secret key.
You can lock any setting with a PHP constant. When a constant is defined it wins over the value on the settings screen, and that field becomes read-only.
Access and secret keys are shown as asterisks in the admin, not as the real values.
Constants
- ZLOJ_S3_ENABLED
- ZLOJ_S3_PRIVATE_UPLOAD
- ZLOJ_S3_TRASH (move the primary attachment to a trash prefix; default on)
- ZLOJ_S3_API_URL
- ZLOJ_S3_API_HTTPS (HTTPS for the API host; default on; ZLOJ_S3_HTTPS_URL is used if this is not defined)
- ZLOJ_S3_API_PATH_STYLE (set to path for path-style API URLs: host/bucket/key ; default path )