Cloudinary supports delivering uploaded images as attachments using their original file names.
You can use the
flags transformation parameter to
attachment, or add
fl_attachment to transformation URLs.
The original file name of all newly uploaded images is now stored on our side for this purpose (for previously uploaded images the public ID would be used).
You can set the flags transformation parameter to attachment, or add fl_attachment to transformation URLs.
Here's a sample uploaded image delivered inline:
Same uploaded image with the attachment flag, downloaded as the original file name ('Custom File Name'):
When using our Ruby GEM, simply add
:flags => :attachment when building transformation URLs of uploaded images.
UPDATE: You can now change the name of the file on download by using
fl_attachment:<new_filename>. For example, to change the original file name to "new_sample" on download you can do the following: