Access Network Attached Storage (NAS) Files

PHP ‘dirname()’ and ‘opendir()’ functions return a ‘no such directory’ error when I attempt to access a directory located outside the context of a WordPress web site.

I suspect WordPress out-of-the-box’s security model by default prevents such file access, which makes sense to do so. If so, is there a way to enable the file access either from within a Local By Flywheel NGINX web server configuration file or within a WordPress configuration file?

My goal is to create a WordPress site for use only within my private local area network, where I can access centrally located media files rather than duplicate them within my site’s Media Library. I need access on the order of terabytes of media content.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.