Get file ID and path to use in View template
The THEME_preprocess_views_view_fields(&amp;$var) function in the template.php in your theme directory is get called just before loading the Row Views Template file. Every component of the current row is saved inside the $var array.

To get what you need, simply just kpr($var) and it gives you all of the information about the current row. You can also save these information in the $var array as an index and use them later.