Weave 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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator