Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions and Encryption #421

Open
Paulsky opened this issue Nov 3, 2023 · 2 comments
Open

Permissions and Encryption #421

Paulsky opened this issue Nov 3, 2023 · 2 comments

Comments

@Paulsky
Copy link

Paulsky commented Nov 3, 2023

Hello,

First of all thank you for this great package! I have a requirement to ensure that my files remain private and can only be accessed by logged-in users with the necessary permissions to edit the associated model.

To achieve this, I've set up a private disk configuration in filesystems.php as follows:

'private' => [
            'driver' => 'local',
            'root' => storage_path('app/private'),
            'visibility' => 'private',
            'throw' => true,
        ],

With this in place, files are successfully uploaded to the private disk. I have two specific questions:

  1. Encryption: How can I encrypt the files during the upload process?
  2. Access Control: I need to ensure that before downloading or viewing, a user has the required permissions to edit the associated model (and if so, decrypt the file before download). I believe I might need to override the show method in DownloadMediaController.

Could you guide me on the best approach for this? Thank you in advance!

@francescosganga
Copy link

same problem here...
I can download the image from Nova but I can't see the preview.

@FrancoFourmantin
Copy link

Same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants