Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Control access to private file downloads and specify HTTP headers.
This hook allows modules enforce permissions on file downloads when the private file download method is selected. Modules can also provide headers to specify information like the file's name or MIME type.
Comments
Comment #1
killes@www.drop.org commentedmoving to docs.
Comment #2
sepeck commentedComment #3
webchickOpening this back up.
http://api.drupal.org/api/5/function/hook_file_download
"Allow file downloads."
Um. Yes. That's helpful. ;)
We need a much better description here. Maybe something can be pulled from the hook_download_file example code in CVS.
Comment #4
brunodboComment #5
brunodboChanged the component to reflect the new component categorization. See http://drupal.org/node/301443.
Comment #6
lilou commentedsee : http://api.drupal.org/api/function/hook_file_download/7
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.