BRACKETS-by-TRIAD / media

Associate files with Eloquent models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with media_private

odlex opened this issue · comments

commented

Hy,
I have a 404 error when i want access files on the media_private disk

I solved that by adding
$this->app['config']->set('medialibrary.custom_url_generator_class', \Brackets\Media\UrlGenerator\LocalUrlGenerator::class);
in the register() function of MediaServiceProvider

I think this depends on how you generate the URL for private media. I have checked our documentation and I agree this is not documented well. Can you paste a snippet here?