- πΊπΈUnited States smustgrave
Thank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
- π¬π§United Kingdom mcdruid π¬π§πͺπΊ
As far as I can see D11 does not have direct equivalent of
file_download_access()
.However it does work the same way in that
\Drupal\system\FileDownloadController::download
counts any headers returned by invokingfile_download
, and denies access if there are none.I'd defer to the file system maintainers as to whether they'd like to add a wrapper around that count like D7's
file_download_access()
. That'd be @kimpepper and @mohit_aghera ( https://git.drupalcode.org/project/drupal/-/blob/11.x/core/MAINTAINERS.t... ).I'll look at the tests next.