Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sonata Laravel Package

ekino/sonata

View on GitHub
Deep Wiki
Context7

Sonata Media Private File Provider

This file provider extends the file provider of Sonata Media package and allows to store media files on a non public place.

The main purpose of this provider is to store media that are private and should not have a public url.

Configuration

sonata_helpers:
    sonata_media_private_file_provider:
        url_prefix: '/admin/private' #default
        storage_path: '%kernel.project_dir%/data/media' #default
        allowed_extensions: [] #default
        allowed_mime_types: [] #default

The allowed_extensions & allowed_mime_types if they are empty or not configured will be populated with default values from SonataMedia file provider.

Todo (comming soon)

  • controller to access file and check download strategy on related context
  • validate that storage_path does not start by a public path like web/upload or public (SF 3 & 4)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui