How to generate a Cloudinary signature on my own?

Follow

Comments

11 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?

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink
  • 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)
    0
    Comment actions Permalink
  • Avatar
    Roee Ben Ari

    Thank you for sharing, Thomas!

    0
    Comment actions Permalink
  • Avatar
    Christopher Prince

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

    0
    Comment actions Permalink
  • Avatar
    Sunil Kumar

    Can the generated signature be used for multiple uploads?

    0
    Comment actions Permalink
  • 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...).

    0
    Comment actions Permalink
  • 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?

    0
    Comment actions Permalink
  • Avatar
    Raya Straus

    The time limit is set at one hour. 

    0
    Comment actions Permalink
  • Avatar
    Arbortree Creations

    Struggling for hours to make a signature on React?

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Hi Daniel,

    You won't be able to directly generate the signature in React (as it needs your API Secret which should only be used in your backend code), but from your description in your Support Forum post (https://support.cloudinary.com/hc/en-us/community/posts/360049705831-Signed-Widget-Upload-No-Documents-or-Examples-React-Client) and Github comment, it seems you're using the Upload Widget. I've shared more details on this in the Support Forum post, but if this isn't the part you're looking for help with, then please let us know.

    0
    Comment actions Permalink

Please sign in to leave a comment.