Auto-Upload vs. Fetch

Auto-Upload vs. Fetch

Source of Truth

We've been configuring and using Fetch and Auto-Upload. We noted some differences between the two. The term "source of truth" describes one of the differences. While both methods will upload to the Cloudinary database, and be served form the CDN, the Auto-Upload can represent source of truth in that it can maintain directory structure of the origin and it won't be cleared from the CDN.

Looking at the image below, we see that the Fetched imaged will always live in the root of the project, whereas the Auto-Uploaded image can live in a directory below the mapped directory corresponding to its location on the source server.

Auto-Upload is often used for migration of assets onto Cloudinary.

auto-upload source of truth

Auto-UploadFetch
Retrieved ImagesCloudinary provides full management functionalities (like "upload" type). All features available.Managed by user, Cloudinary provides manipulation and delivery only
TransformationsCan create multiple versions of the same image using Eager-Transformations, or apply Incoming-Transformation.On-the-fly transformations only
Upload PresetsAutomatically apply pre-defined actions to apply to uploaded files (upload-preset is named as the mapped folder)N/A
SEO-Friendly URLsShortened URLs, hide the originLong (verbose) URLs, can’t hide the origin
Access Permissions to originalsRestrict access to originals by utilizing private imagesN/A
Image AvailabilityFull storage management, backups, revisionsCloudinary provides caching only
Handling ConsistencyIdentical treatment of newly-uploaded and old - maintain folder structure with or without the mappingN/A
Auto RefreshingRequires explicitly deleting/overriding existing resourceAutomatic refresh policy is available on paid plans
Use CaseLazy MigrationNo migration - maintain existing source of truth
Asset TypesImage, video, rawImage only