Rename Uploaded Cloudinary Files in bulk
Hi,
Does cloudinary supports a module to rename all uploaded files (unfoldered), at once?
For example:
-> File A, B, C, D, E -> named A1, B1, C1, D1, E1
-> Rename wants to add "BEST_" so it would become -> BEST_A1, BEST_B1, BEST_C1, BEST_D1, etc.
Thanks!
-
Hi,
Currently the way to do a bulk rename would be to write a script that traverses through each resource that you would like to rename and you can call our API rename method on each resource. You can refer to our documentation to read more about how to rename resources here:
https://cloudinary.com/documentation/image_upload_api_reference#rename
Thanks,
Marissa
-
Hi Willemijn,
I'm afraid that currently, the only solution for achieving this remains writing a script, according to the guidelines suggested by Marissa.
We will be more than happy to assist you in generating such a script. If interested, please open a support ticket at https://support.cloudinary.com/hc/en-us/requests/new and we will continue our communication over there.
Thanks,
Raz
-
Hi,
When I am using multi-threads to send 8 rename requests at once it works fine but I get this warning for 7 of the 8 requests that I am sending:
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: api.cloudinary.com
I assume that the urllib3.connectionpool is managing it correctly (Discarding only the connection part) and that it knows to work with the existing connection when this warning happens because everting seems to work fine but I am not sure.
Am I correct?
If not... how would you recommend for me to solve this?
Thank you for your help,
Daniel -
Hi Daniel,
Could you please create a support ticket thru https://support.cloudinary.com/hc/en-us/requests/new and share with us your code so we could check on it?
Regards,
Francis
Post is closed for comments.
Comments
8 comments