How to generate a Cloudinary signature on my own?

Follow

Comments

9 comments

  • Avatar
    William Jamieson

    Modeling your sample into a SHA1 digest hex doesn't work with your server. I think there is something missing or out of date. What about the HTTP headers?

  • Avatar
    Nadav Ofir

    William, feel free to share with us your signature generation code (Make sure to remove any secret/private credentials first) so we can further investigate.
    You can also do that by opening a support ticket, if privacy is an issue.

  • Avatar
    Thomas Edwards

    For those looking for the Node JS version, it’s actually in a utilities module, so this is how you’d use it:

    cloudinary.utils.api_sign_request(params_to_sign, api_secret)
  • Avatar
    Roee Ben Ari

    Thank you for sharing, Thomas!

  • Avatar
    Christopher Prince

    A Swift code example to do the signature generation:
    https://gist.github.com/crspybits/d8d34d18a08eab57c62a0b30f64c4f64

  • Avatar
    Sunil Kumar

    Can the generated signature be used for multiple uploads?

  • Avatar
    Raya Straus

    Hi Sunil,

    The same signature can be used for uploading multiple files as long as all the parameters remain the same (i.e: tags, folder...).

  • Avatar
    Sunil Kumar

    Thanks. As a signature has a life time of 1 hour, does the multi upload case increase the time limit of signature after each successful upload? Or is it a constant time limit?

  • Avatar
    Raya Straus

    The time limit is set at one hour. 

Please sign in to leave a comment.