Displaying an image via widget.

1
Hi, I've created a widget that takes an input of an image and displays it. But I just wanted to verify the correct way to source the image. I've used /file?guid= (Object GUID) in the past & that was fine. But in some applications that was not fine and had to use object.get(path)... Which one is correct? thanks
asked
1 answers
2

Take a look at the filedocument widget from the appstore. Add the csrftoken.

url ="file?target=window&guid=" + this._contextObj.getGUID() + "&csrfToken=" + mx.session.getCSRFToken() + "&time=" + Date.now();

answered