When uploading an image through the Dashboard's 'Media library', or through the API (when
use_filename is set to
true and no custom public ID is given), Cloudinary automatically append a random short string to the end of the image's name in order to avoid two images sharing the same public ID.
However, Cloudinary still keeps the original file's name. Therefore, when delivering the images using the
attachment flag (
fl_attachment in URLs), the file will be delivered as an attachment with the original file's name.
For example, here's an image uploaded to Cloudinary, originally called
sample, Cloudinary automatically generated its public ID to be
Using the same URL with the
attachment flag will deliver the image, using its original name:
This behavior can be changed when using the API. See: http://support.cloudinary.com/hc/en-us/articles/202520762-How-to-upload-images-while-keeping-their-original-filenames-
You can now set an upload preset to keep the original file name when uploading images via the Media Library. From the "Storage and Access" tab set 'Use filename or externally defined public ID' On and the option of `Unique Filename` to Off.