dmitrybubyakin / nova-medialibrary-field

Laravel Nova field for managing the Spatie media library
MIT License
264 stars 61 forks source link

Download Controller doesnt use the Media Model you specify in the config #133

Closed ErenPhayte closed 3 years ago

ErenPhayte commented 3 years ago

We have overridden the media model in the config file, to use one of our custom Media models that use a different connection string. What we have found is that when we click on the download icon to download the media that was uploaded, the DownloadController still utilises the base Spatie\MediaLibrary\MediaCollections\Models\Media instead of utilising the one referenced in the configuration. Which then causes the download to fail as it cant find the file.