This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Upload Widget - Can't add context/metadata with prepareUploadParams()

Comments

1 comment

  • Avatar
    Tia Esguerra

    Hi there, 

    Thanks so much for reaching out. You are almost there. You just have some incorrect syntax. 

    I tried the code below and was able to upload an image and see the contextual metadata correctly applied. 

    prepareUploadParams: (cb, params) => {
    params= {
      context: "alt=@kitty, https://meow.com/ | 
                     instagram=@meowKitty |
                     website=https://meowKitty.com/ |
                     email=meowKitty@example.com",
      };
    cb(params);
    }
     
    Could you give that a shot and let me know how it goes?
     
    Kind Regards, 
    Tia
    0
    Comment actions Permalink

Post is closed for comments.