How do you refer to the field in views-view--field-fieldname.tpl.php? I'm using the views-view-field--field-fieldname.tpl.php to rewrite the output of a specific field in a view. However in this template I'm having trouble referring to the actual field.

I can produce the normal input with

print $output;


However this contains the classes and divs it is wrapped in. Including the default icon that is used to represent it. I'm having trouble producing the specific data of the field. Specifically the url to the file. (It is a file field). Is this possible? I made quite a number of attempts. Below are the attempts I've made that were unsuccessful.

print $fields['fields_field_fieldname']-&gt;content;

print $row['fieldname'];

print $view-&gt;results-&gt;{view-&gt;field['field_fieldname']-&gt;field_alias}; 


I understand that I could use string replace and regex to extract the data I need $output. If that's the only way to do it, I'll stick to that.
File field has formatter "URL to file", please see this screenshot: 

So finally, in $output will be only url to file.

Also, if you don't want any views default wrappers, you can unselect checkbox in "STYLES" fieldset (see screenshot abowe).