Skip to main content

How to verify an upload response signature using Cloudinary SDKs

Comments

4 comments

  • Imoafrica

    hello i am trying to upload image with the widget, a signed upload.

    so, how can i get the version string or is just a ramdon string

    0
  • Yakir Perlin

    Hi, 

    You don't need to sign to version string.

    We created an example of singed upload endpoint with https://webtask.io/.

    You need to register (It's free) and create a new function from a template, then just select the signed upload template.

     

    Please try and let me know if it works for you.

    Best,

    Yakir

    0
  • Rayee Roded

    This article states that only the public_id and version are the required parameters that needs to be included to verify the signature. However the following  docs:

    https://support.cloudinary.com/hc/en-us/articles/115001302471-How-to-validate-Cloudinary-webhooks-signature-

    https://cloudinary.com/documentation/notifications#verifying_notification_signaturesCloudinary Webhooks and Notifications | Cloudinary

    mentions that the entire body needs to be included (stringified I assume?!) 

    Which one is correct?

    0
  • Francis Tagbo

    Hi Rayee,

    The signature that is provided here is for the response to the upload request while the signature that you mentioned is for the notification that we have sent to let your server know that something has been done to your asset.

    For generating the signature to verify the notification, the string to be signed needs the body of the notification.

    Please let me know if this clears things up.

    Regards,
    Francis

    1

Please sign in to leave a comment.