Skip to main content

Migration path for permanently moving Rails static images to Cloudinary


1 comment

  • Ido

    Hi Kelly,

    The answer to both your questions is to use the rename method.When you rename a file, you could specify the folder you want the file to be in, and this would either create the folder if does not already exist or move the file to that folder if it exists.

    So for example, if you perform the below call it would rename the file "blue_lake" to "blue_lake1" and move the file to the "sample" folder

    Cloudinary::Uploader.rename("blue_lake", "sample/blue_lake1", options = {})

    Let me know if that helps?





Post is closed for comments.