file field properties drupal7 I'm building a library and it is possible to add books to website. I need to get uploaded file urls and display them in 'a' tag inside views page (not node). how can I do that?

unfortunately I can't use kpr() to find file properties I guess because it has lot's of outputs and it prevents the page from loading (var_dump does the same thing)

I also tested this function to print the file size but it failed

function MYT-HEME_file_link(&amp;$variables) {
$file = $variables['file'];
print $file-&gt;getsize();
}
You can follow the below steps


Create a Relationship of the type "File Usage: File"
This will bring up additional Fields. You can add the filed called File: Path (Path) and select the above relationship. 
Check "Display download path instead of file storage URI" This would give you the entire path. You can use the same any where in the view. 


Once you add the relationship you would get additional fields related to the file. For example if you want to print the size of the file you can use the field "File: Size" etc.