WordPress.org

Ready to get started?Download WordPress

Forums

Having all images uploaded to MaxCDN instead of wp-uploads (4 posts)

  1. cusinndzl
    Member
    Posted 2 years ago #

    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.

  2. emke
    Member
    Posted 2 years ago #

    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?

  3. michael.mariart
    Member
    Posted 2 years ago #

    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.

  4. cusinndzl
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic