Skip to main content

Removing whitespaces from folder names

Comments

1 comment

  • Stephen Doyle

    Hi Sebastian,

    Although folder names are shown separately in the Media Library, when your files are stored in your account, the folder name is part of each file's identifier / public_id, and part of the URL used to access each image.

    As a result, there isn't a simple 'rename folder' operation, but instead, the equivalent operation is to move the files to a new folder with the desired name you need, which will effectively change the folder name from your perspective, and also in the URLs to access the files.

    You can do this using our API, using the Admin API to fetch a list of the existing images, and then the rename method for each file, replacing the old folder name with the new one: https://cloudinary.com/documentation/image_upload_api_reference?query=rename&c_query=Rename%20method#rename_method

    If there are relatively few affected files, you can do this in the Media Library by selecting the files and choosing to move them to the 'new' folder.

    If this isn't something you can do readily from your side, please open a support ticket for our team with the details and we'd be happy to help further

    Thanks,

    Stephen

    0

Post is closed for comments.