Is there a way to specify folder location with the Transform/Fetch url?



  • Avatar
    Aleksandar Kostadinov

    Hi Ben,

    I see you also created a ticket with us directly with this question where I answered previously, but I'll also share a summary here as well for future reference.

    In short, because the public_id of a Fetch asset is the URL, those Fetch assets cannot be in folders.

    What you can do instead of using Fetch is pass the remote URL into the upload() method and Cloudinary will retrieve the remote asset and upload it into your account. Because it'll count as a regular "uploaded" asset, you can pass any upload parameters such as 'folder' to store the asset in a different place.

    Alternatively, if you are always fetching from the same remote server you can utilise the auto-upload feature rather than Fetch.

    Comment actions Permalink
  • Avatar
    Awesome Labs

    Excellent. Thanks!

    Comment actions Permalink

Please sign in to leave a comment.