Active
Project:
PDFPreview
Version:
8.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2026 at 10:09 UTC
Updated:
22 Sep 2026 at 10:16 UTC
Jump to comment: Most recent
When storing previews in private://, nobody can access them because they are not managed files (#2346003: Preview image as managed file) so FileDownloadHook never allows access.
Use the pdfpreview formatter on a file field that uses private://. The preview images are then stored in private:// too.
Add a hook_file_download that allows access if the user can access the original PDF file.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
prudloff commentedThe MR adds a procedural hook, we probably should convert it to an OOP hook.
Comment #4
prudloff commented