WordPress.org

Support

Support » Plugins and Hacks » Hacks » Having all images uploaded to MaxCDN instead of wp-uploads

Having all images uploaded to MaxCDN instead of wp-uploads

  • I have a WordPress site and as I publish more and more posts with images the size of my wp-uploads folder increases. The problem with this is that most web hosts don’t want you using a ton of storage.

    I’ve been using MaxCDN for a while now to offload those images to a CDN to speed up the site, but the images are still in the wp-uploads folder. I was wondering if it is possible to have WordPress upload all images to MaxCDN and not the wp-uploads folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    you can use W3 Total Cache (http://wordpress.org/extend/plugins/w3-total-cache/) to connect to MaxCDN. For local files you can run WP cron or something similar to delete the files periodically. I’ve been doing something similar with AWS S3 and set up a cron job to delete local files. I would also be interested if anyone has a good tip and if this is the right way to do this?

    WordPress won’t do this automatically. If you want it to do it from inside the program, then you will need to either find a plugin that does that for you, or program something for yourself to do that.

    The other option is to upload the images to your CDN yourself and manually input the URL’s into your posts. That’s the “easy” non-technical way to do it.

    My web host doesn’t support cron-jobs. I guess I’ll have to find another way, or just manually FTP into the website and delete files once a month or so.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Having all images uploaded to MaxCDN instead of wp-uploads’ is closed to new replies.
Skip to toolbar