github error311/FileRise v1.2.2
FileRise v1.2.2

latest releases: v1.3.9, v1.3.8, v1.3.7...
4 months ago

Full Changelog: v1.2.1...v1.2.2

Changes 4/21/2025 v1.2.2

Added

  • src/webdav/CurrentUser.php
    – Introduces a CurrentUser singleton to capture and expose the authenticated WebDAV username for use in other components.

Changed

  • src/webdav/FileRiseDirectory.php
    – Constructor now takes three parameters ($path, $user, $folderOnly).
    – Implements “folder‑only” mode: non‑admin users only see their own subfolder under the uploads root.
    – Passes the current user through to FileRiseFile so that uploads/deletions are attributed correctly.

  • src/webdav/FileRiseFile.php
    – Uses CurrentUser::get() when writing metadata to populate the uploader field.
    – Metadata helper (updateMetadata) now records both upload and modified timestamps along with the actual username.

  • public/webdav.php
    – Adds a header‐shim at the top to pull Basic‑Auth credentials out of Authorization for all HTTP methods.
    – In the auth callback, sets the CurrentUser for the rest of the request.

    • Admins & unrestricted users see the full /uploads directory.
    • “Folder‑only” users are scoped to /uploads/{username}.
      – Configures SabreDAV with the new FileRiseDirectory($rootPath, $user, $folderOnly) signature and sets the base URI to /webdav.php/.

Don't miss a new FileRise release

NewReleases is sending notifications on new releases.