Code
<?php
$files = $obj->field('upload');
foreach ($files as $file)
{
$file_url = get_attached_file($file['id']);
echo '<a href="' . $file["guid"] . '">' . $file["post_title"] . '</a>';
echo '<br>';
}
?>
Error message when there is no attachment:
Warning: Invalid argument supplied for foreach () in /var/www/html/wp-content/plugins/pods/components/Templates/Templates.php(500) : eval () 'd code on line 8