Skip to content
Junaid Bhura edited this page Nov 9, 2017 · 7 revisions

Why did you build this plugin?

There already is an official Cloudinary plugin: https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ available. But in my opinion, it's an overkill and takes over the admin UI. This plugin aims to be:

  • Super simple and light-weight
  • Totally seamless and out of the way
  • A flexible tool for WordPress developers

 

What is Cloudinary Auto-Upload?

Cloudinary gives you two options to upload files to it's servers:

  1. The complicated Upload API 😱
  2. The super easy and magical Fetch API 🎩

Upload API

TL;DR: Too complicated and in the way 👎

Cloudinary gives you an API, using which, you can manually upload the images to Cloudinary. So you'd need an API key, etc. The official plugin uses this method. When you upload an image to the media library, it in turn, uploads it to Cloudinary. This could be a problem if you have thousands of existing images, and might not be flexible enough to support custom architecture.

Fetch API

TL;DR: Magical 👍

This plugin uses the super easy Auto-Upload feature in the Fetch API. Just we just tell Cloudinary where to find the files on our server (or on S3 or anywhere on the Internet), and it automatically downloads it from there and saves it on to it's servers like a CDN would!

Clone this wiki locally