Add file/image property to an img src

Permalink
I want to display an attribute of a file/image property, but I don't know how to place it's path inside the img src.

There's a getPath() method in the API but it returns the full filepath. I guess I need a relative path. Any ideas?

 
torchmedia replied on at Permalink Reply
torchmedia
Try using getRelativePath()
Nip replied on at Permalink Reply
Thank you! That was just what I was looking for!