Get file data from another page

Hi everyone!
I have a file that has info asociated that was filled by using a file template and a blueprint, now I want to call this info from another page that selects this file via a dropdown in the panel.

So, if I do:


I get somekind of path to the page (albums/album/photo.jpeg) where the file is stored? Is this the id of the file?

I tried, with no luck, to get the info of this file by using the following

$page->parent()->files()->find($page->relatedFile())->caption() // this only works if I pass the filename not the filepath

Any ideas on how to perform this correctly? Thanks in advance!

What does


return? It should actually give you a file object…