Hi,
I'm a happy new user of Processwire. I would like to use the new template setting 'prevent direct access to file assets'.
So I upgraded to the newest dev version 3.0.168. For a template I select the option 'Yes always, regardless of page status or access control'. In the file system is see that al the pagid's for pages with this template are being prefixed with a hyphen, f.e. ../assets/files/-1030/..
And when I try to load http://localhost:8080/site/assets/files/-1030/test.pdf i get a forbidden error, so that seems ok.
But... when I try to access the page without the hyphen (http://localhost:8080/site/assets/files/1030/test.pdf) the file is still being downloaded?!
I also tried setting $config->pagefileSecure = true and creating a new page with a file, but that doesn't work either.
Is there any other setting I should apply to prevent direct access?
Kind regards, Douwe.