Yes. Cloudinary was upgraded in March 2013 to support folders.
From here on, your images' public ID can contain one or more folders, e.g.
For example, here's a Ruby code sample that uploads an image with the above url (note - this requires the Gem v1.0.50+):
Cloudinary::Uploader.upload("sample_image.jpg", :public_id => "multiple/folders/sample")
The Ruby code that builds this URL:
cloudinary_url("multiple/folders/sample", :version => "1364158979", :format => :jpg)
Alternatively, here's the Rails cl_image_tag that will display this image:
cl_image_tag("multiple/folders/sample", :version => "1364158979", :format => :jpg)
- By default, when uploading via the API, folders are not automatically created in your Media Library. In order to automatically create the folders based on the API requests, please go to your account upload settings and set the 'Auto-create folders' option to enabled.
- If you build the URLs by yourself, you'll need to add a version component for folders to work. If you aren't planning on overriding your images, you can simply use "v1" as the version number. Our client integration libraries will automatically add the correct version for you.
- While the samples above are based on Ruby/Rails, all of our latest client integration libraries support the folders functionality.
You can now add the new
folder parameter to the upload call to specify the folder while uploading. This includes uploading multiple images.
For more information:
You can now create folders from the Media library as well: