Automating Media Offload in WordPress with FTP, FTPS, and SFTP
php
dev.to
I built this plugin to solve a boring but expensive WordPress problem: the media library keeps growing, backups get heavier, and storage on the app server turns into a bottleneck. The core idea is simple. New and existing uploads can be pushed to an external FTP, FTPS, or SFTP destination, then served from a CDN base URL without rewriting attachment data in the database. You can see the full plugin at Nexu FTP Media. Under the hood, I treated media offload as a pipeline instead of a one-click