This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Migration path for permanently moving Rails static images to Cloudinary

Comments

1 comment

  • Avatar
    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?

     

    Thanks,

    Ido

    1
    Comment actions Permalink

Post is closed for comments.