Ask a Question?

1dave
1dave Member Posts: 1
edited March 2023 in Digital Asset Management

On the main board "ASK A QUESTION" goes nowhere. That should be fixed.

My question is about folders and sub folders.

I have many, started before understanding how your structure works.

I would like to be able to move all of my "science" folders into a new single folder.

I can do it with my Windows 7 program. Will it be possible here?

Comments

  • rlux
    rlux Administrator, Cloudinary Staff Posts: 52

    Hi @1dave -- if a new user has not verified their email, that can sometimes cause an asked question to "vanish" into a spam filter. Apologies if it happened to you.

  • tia
    tia Member, Cloudinary Staff Posts: 24

    Moving folders into other folders is not supported via the UI. However, a workaround would be to create a new folder/subfolder in the desired location and then move the assets from the existing folder into the new one. So, instead of moving the folder into another folder, you will move the assets inside it into the newly created folder.

    To move assets from one folder to another, you'll need to select all the images in a folder by clicking the top left corner of the image thumbnail and then there should be a search bar that will show up which allows you to "select all". In that same search bar there should be an option of "Move to folder". Please be cautious when doing this because when images are moved from one folder to another, it means that their public_id changes. This change in public_id means that the previous URL will need to be updated, as the public id is part of the URL.

    e.g. https://res.cloudinary.com/image/upload/myfolder/sample.jpg -> https://res.cloudinary.com/image/upload/mynewfolder/sample.jpg

    Once you move your assets you can delete the empty folder by clicking the 3 vertical dots on the folder and selecting the delete option.

    You can also do this programmatically by using the rename method of the Upload API. You can reference that documentation here:

    https://cloudinary.com/documentation/image_upload_api_reference#rename

    I hope this helps. Let me know if you have any questions.