file_download_access

function file_download_access

file_download_access($uri)

Checks that the current user has access to a particular file.

The return value of this function hinges on the return value from file_download_headers(), which is the function responsible for collecting access information through hook_file_download().

If immediately transferring the file to the browser and the headers will need to be retrieved, the return value of