Skip to main content
7 events
when toggle format what by license comment
Mar 5, 2015 at 5:06 vote accept tomas.teicher
Mar 3, 2015 at 22:37 answer added kenorb timeline score: 1
Jul 29, 2013 at 8:37 comment added tomas.teicher I think Clive's comment could be considered as correct answer. Although it doesn't solve my problem checking access using hook_file_download based on HTML page, where the file link is placed. But it is another question.
Jul 29, 2013 at 8:03 comment added Clive What leads you to believe that? (it isn't by the way :)
Jul 29, 2013 at 8:00 comment added tomas.teicher But the hook is really fired when I am displayingf private file on page.
Jul 10, 2013 at 13:34 comment added Clive That's the correct behaviour. If current_path() wasn't the URL of the file, then the file must never have been requested, and that hook would never have fired. When you request a private file the current URL must be the file's URL, by definition. It sounds like you're looking to track the page that originally contained a link to your file. That's going to be almost impossible to do reliably.
Jul 10, 2013 at 10:43 history asked tomas.teicher CC BY-SA 3.0