Removing whitespaces from folder names
Hello,
we recently encountered problems with uploading images from cloudinary to our ERP software.
The reason for that is that there are whitespaces in the folder names.
Is it possible to change those links directly from cloudinary.
That would be of great help to us, because otherwise we would need an enormous amount of time to delete, recreate and refill those folders.
Thanks for any help or advice.
Sebastian Fricke
BKK Asiatica
Germany
-
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 furtherThanks,
Stephen
0
Post is closed for comments.
Comments
1 comment