Link directly to a file from a block I have a full-HTML block and I want to put a link to a file into it that varies with the sitepath. I saw somewhere something about putting public:// instead of http:// to route to sites/default/files, but it doesn't seem to work from block content at least (is that only in php?)

So I have a block with &lt;img src="public://img/screenshot.png"/&gt; in the content and nothing is happening. Any ideas how to make this work? I don't to use image module or anything like that yet.. just a link to a file.
You'll need to use file_create_url() and the 'PHP code' format (comes with the core 'PHP filter' module) for this to work:

&lt;img src="&lt;?php print file_create_url('public://img/screenshot.png'); ?&gt;"/&gt;


If possible I would suggest adding it inside the block's template file instead though.