How to Set Structured Metadata in Cloudinary Widget?

Comments

1 comment

  • Avatar
    Eitan Sherer

    Hi Ben,
    Adding the metadata object to the config is not supported by the upload widget, so using the prepareUploadParams is definitely the way to go. Inspecting your logs it seems like you added the metadata field correctly, in the expected serialized format (see Asset Management>upload>Optional Parameters in https://cloudinary.com/documentation/image_upload_api_reference).

    Can you share some more details on the error you received when using prepareUploadParams? I suspect that the data is not being properly signed - attaching an example usage which works for your reference: https://jsfiddle.net/aleksandar_cloudinary/kjt8xqs1/

    Please let me know if it works after re-signing, or what error you're receiving so that we can continue the debug.

    Thanks,
    Eitan

    Creative Automation Architect,
    Cloudinary

    0
    Comment actions Permalink

Please sign in to leave a comment.