This task can be performed using Locker
Locker: Secure file storage, fully controlled on your infrastructure.
Best product for this task
Locker
oss
Locker is an open-source, self-hosted file storage system that runs on your own infrastructure and storage backends. It offers deep search, secure sharing, workspace permissions, and a type-safe API so engineering teams can manage and automate file workflows without vendor lock-in.

What to expect from an ideal product
- Set up workspace-based permissions that let you control who can view, edit, or share files within specific project areas or team folders
- Create granular access controls where you can assign different permission levels to individual users or groups, from read-only access to full admin rights
- Use secure sharing links that expire automatically and require authentication, so you can safely share files with external collaborators without losing control
- Track all file access and sharing activity through built-in logs, giving you visibility into who accessed what files and when
- Deploy on your own servers to maintain complete control over sensitive data while still enabling team collaboration through customizable permission structures
