You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rearchitect the Files Module, part 2: storage abstraction (Phase 1) #394
Set the PHP baseline: add "php": ">=8.2" to composer.json.
Add league/flysystem 3.x and its local adapter.
Add w2p_Storage_Driver, _Registry, _Service, _Factory and w2p_Storage_Exception, with local (rooted at W2P_BASE_DIR/files, not configurable) and in-memory drivers.
Move $_FILES, move_uploaded_file, $AppUI->setMsg() and die() out of the backend into the controllers; read returns a stream.
Replace CFile::getFileSystem() with getStorage(); keep w2p_FileSystem_Local and the deprecated CFile methods as shims for one release.
Enforce __nonce on every Files and Folders handler (do_file_aed, do_folder_aed, do_files_bulk_aed).
Replace files/.htaccess and files/temp/.htaccess with Apache 2.4 deny rules (Require all denied, 2.2 fallback), and add an nginx example that denies /files/.
Contract test suite, run against both drivers.
The Category, Project and Owner list filters from the original issue are already on master.
Goal: local storage runs through the new layer with an identical on-disk layout, the contract tests pass, and /files/... returns 403 on Apache 2.4 and nginx.
Activity
[-]Rearchitect the FIles Module, part 2[/-][+]Rearchitect the Files Module, part 2: storage abstraction (Phase 1)[/+]