I did some custom scripting in a custom module. After my scripting I would like to go to the file path of a file field. How can I achive this? I have the uri of the file to display it. I tried drupal_goto('$result') where $result is result of query with uri field of file.
Although drupal_goto($result) does not work. Any suggestions??