Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, i have been using this module and i have seen that your module only found if you upload the files manually. If you want use this module with files that they have been upload by file_field through an entity you need include hook_file_download_access.
Using the above hook you force that workflow pass by private_files_download_permission_file_download.
The code show like this:
function private_files_download_permission_file_download_access($file_item, $entity_type, $entity){
return TRUE;
}
Comments
Comment #2
zanonmark CreditAttribution: zanonmark commentedComment #3
zanonmark CreditAttribution: zanonmark commentedComment #4
zanonmark CreditAttribution: zanonmark commentedI could not reproduce the problem: files attached as file fields are managed properly by this module.
Could you please report a step-by-step example?
Thanks,
Marco
Comment #5
zanonmark CreditAttribution: zanonmark commented