dynamic Root URL for raw/upload

markstuartwalker
markstuartwalker Member Posts: 11

This feature is mentioned here https://cloudinary.com/documentation/advanced_url_delivery_options

in the context of image types. Is it possible to configure it for raw image types?

Thanks

Mark

Best Answer

  • Vdeub
    Vdeub Member, Cloudinary Staff Posts: 41
    Answer ✓

    Hi @markstuartwalker,

    As stated in our documentation, the `root path url` feature is only available for images so you can't use it for raw files.

    Your only option to use SEO friendly URLs for raw files would be to use the Dynamic SEO suffixes as documented here.

    Best,

    Loic

Answers

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 74

    Hi Mark,

    Yes, please let me know if you need help :)

    -Tamara

  • markstuartwalker
    markstuartwalker Member Posts: 11

    Perhaps I need to re-phrase:

    Can you show me how to change the root folder behaviour for raw types. I cannot find reference to doing so within the documentation.

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 74

    Hi @markstuartwalker,

    Can you be more specific? what's your use case?

    If you don't want to share it publicly, you can always open a new private support ticket:

    https://support.cloudinary.com/hc/en-us/requests/new

    Best,

    Tamara

  • markstuartwalker
    markstuartwalker Member Posts: 11

    Hi Tamara

    The documentation states

    I make use of this for my images such that the delivery URLs are https://res.cloudinary.com/lu1/198092/Original

    I wish to do the same for raw uploads ie both of these should work

    https://res.cloudinary.com/lu1/raw/upload/1004463/Original

    https://res.cloudinary.com/lu1/1004463/Original

    BUT the second one does not work.

    How do I make this work for raw uploads i.e. where do I set the resource type and type parameters to the non-default values of 'raw' and 'upload'? Where is the documentation which shows me how to do this?

    Thanks

    Mark

  • markstuartwalker
    markstuartwalker Member Posts: 11

    Hi Loic,

    Respectfully, that isn't quite clear in the documentation. It says that by default it is for 'image' and 'upload' which implies that the default could be changed.

    "With Cloudinary's Root Path URL feature, the resource type and type parameters are set to the default values 'image' and 'upload' respectively..."

    I will just have to continue having a longer url for raw's.

    Thanks

    Mark