Cloudinary supports several methods for naming your uploaded resources.
Via API:
- Fully random 20 characters long public ID, which keeps your image URLs obscure for privacy reasons (That is the default behavior)
- The original filename followed by a unique 6 random characters suffix (activated by specifying
use_filename:true
&unique_filename:true
) - The original filename as-is, which will override any existing image that shares the same name (activated by specifying
use_filename:true
&unique_filename:false
) - Setting a specific public ID, this will override any existing image that shares the same name (
public_id:"my_resource"
)
Via UI (i.e. media-library):
- The original filename followed by a unique 6 random characters suffix (That is the default behavior)
- The original filename as-is, this will override any existing image that shares the same name (activated by setting the "Use filename or externally defined public ID" to True, and "Unique filename" to false, in the Upload Preset used for your Media Library uploads)
- Setting a specific public ID, this will override any existing image that shares the same name (In the upload form, set the
public ID
field under "Advanced")
Comments
2 comments
It would be great if we can add image size suffix to the end of filename.
For example, I upload image.jpg -> get back image_200x300.jpg
Hi Huy,
You're welcome to submit your request at https://cloudinary.com/roadmap by clicking the "+" at the left bottom corner.
Thanks,
Mo
Please sign in to leave a comment.