Display field's content as an image I'm using webform_multiple_file. To display my submissions, I created a view and added as field Webform submission data: Value

To customize my view I used print $fields['value_1']->content ; 

This displays somthing like this:


  image1.png
  
  image2.jpeg


But I want to display just the first data and as an image like 

&lt;img src="image1.png" /&gt;


Below the HTML return

&lt;div class="webform-multiple-file"&gt;&lt;a href="http://localhost/mydrupal/sites/default/files/webform/image1.png"&gt;image1.png&lt;/a&gt;&lt;/div&gt;&lt;div class="webform-multiple-file"&gt;&lt;a href="http://localhost/mydrupal/sites/default/files/webform/image2.jpeg"&gt;image2.jpeg&lt;/a&gt;&lt;/div&gt;


Any idea please? Thank you
Try something like this:

file_dir  = $file_create_url("public://");

print '&lt;a href=' . $file_dir . '/'. $fields['value_1']-&gt;content . '&lt;/a&gt;';