Skip to main content

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

Comments

1 comment

  • 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

Post is closed for comments.