Set the image name


1 comment

  • Avatar
    Itay Taragano

    Hi Shuky,

    You can specify your own custom public ID to any of your images, either while uploading, or renaming an already uploaded image.

    In addition, your images' public ID can also contain a prefix (e.g., "user1-..."), and even one or more folders (e.g., "user1/myfolder/...").

    Here are two examples of specifying a custom public ID while uploading (in Rails):

    Cloudinary::Uploader.upload('my_image.jpg', :public_id => 'john_doe_1001')
    Cloudinary::Uploader.upload('my_image.jpg', :public_id => 'my_folder/my_sub_folder/my_name')

    You can also store your images in folders while keeping the images' original file names. For more information:

    Comment actions Permalink

Please sign in to leave a comment.