My site is building for website together with testing purpose. Designers often use the directories to display jpg, pdf or files to let clients to download.
After I move my site to be backed by PW, the directory URL is no longer accessible directly. (e.g. accessing mysite.com/test/ will display 1.jpg 2.jpg as a list)
The structure is as the following.
When I access mysite.com/test/, I receive 403 Forbidden. I can only acc
A solution should be to bootstrap ProcessWire, coding a function which list the all the files in the current directory and subdirectories. Also, writing a custom function give you full control over the listed files, by example, filtering the files by a given allowed extension.
You can test the following:
In your /test directory, create a file called index.php. In the index.php write the following the code :
include("../index.php"); // bootstrap ProcessWire