Advanced Media Offloader


Advanced Media Offloader automatically uploads media attachments from your WordPress site to an S3-compatible cloud storage, replacing the URLs appropriately to serve the media from the cloud. This can help reduce server load, increase page speed, and optimize media delivery.


  • Automatic upload of new media attachments to S3-compatible cloud storage.
  • Rewrites URLs for media files to serve them directly from cloud storage.
  • Provides hooks for further extension.

Using the S3 PHP SDK

The Advanced Media Offloader utilizes the AWS SDK for PHP to interact with S3-compatible cloud storage. This powerful SDK provides an easy-to-use API for managing your cloud storage operations, including file uploads, downloads, and more. The SDK is maintained by Amazon Web Services, ensuring high compatibility and performance with S3 services.

For more information about the AWS SDK for PHP, visit:


  1. Upload the wp-fitter-media-offloader folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Configure the plugin by going to the settings page and adding your S3-compatible cloud storage credentials into the wp-config.php file.
  • For Cloudflare R2, add the following to wp-config.php:

    define('ADVMO_CLOUDFLARE_R2_KEY', 'your-access-key');
    define('ADVMO_CLOUDFLARE_R2_SECRET', 'your-secret-key');
    define('ADVMO_CLOUDFLARE_R2_BUCKET', 'your-bucket-name');
    define('ADVMO_CLOUDFLARE_R2_DOMAIN', 'your-domain-url');
    define('ADVMO_CLOUDFLARE_R2_ENDPOINT', 'your-endpoint-url');
  • For DigitalOcean Spaces, add the following to wp-config.php:

    define('ADVMO_DOS_KEY', 'your-access-key');
    define('ADVMO_DOS_SECRET', 'your-secret-key');
    define('ADVMO_DOS_BUCKET', 'your-bucket-name');
    define('ADVMO_DOS_DOMAIN', 'your-domain-url');
    define('ADVMO_DOS_ENDPOINT', 'your-endpoint-url');


Does this plugin support other cloud storage platforms?

Currently, the plugin supports only Cloudflare R2 and DigitalOcean Spaces, but we are working on adding support for other cloud storage platforms such as Amazon S3,, and more.

What happens to the media files already uploaded on my server?

They will remain on your server, and they will be served from your server.

How does the plugin handle media files that are already uploaded to my cloud storage?

The plugin will automatically detect and rewrite URLs for these files, so they can be served from the cloud storage.

What happens to media files uploading to my cloud storage?

We won’t delete media files after offloading them to the cloud storage. But we are working to add a feature so you can choose whether to delete or keep the media files on your server after offloading.


There are no reviews for this plugin.

Contributors & Developers

“Advanced Media Offloader” is open source software. The following people have contributed to this plugin.




  • Initial release.


  • Improve the code base to fix some issues
  • Add support to DigitalOcean Spaces