Send Images using Variables

Given that neither the documentation nor that studio sample variable on this is up to date (quite annoying really), what is the actual format for passing images to the image node in the studio using a variable?

None of the below formats worked for me (note they are both different and both are either outdated or incorrect)

1 Like

Hey @pranavbijwe

Please try this. We’ll have the docs on it updated shortly

return new Promise(async resolve => {
    // Your logic goes here
    
    // Array of objects - each object having url & options (optional)    
    await resolve([
        {
            url: "https://4.img-dpreview.com/files/p/E~TS590x0~articles/3925134721/0266554465.jpeg",
            options: {} // optional field - if required
        },
    {
        url: "https://3.img-dpreview.com/files/p/E~TS590x0~articles/8692662059/8283897908.jpeg",
    }
    ]);
});