spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

Refactored how download file name is determined within MediaStream #3541

Closed chrispage1 closed 9 months ago

chrispage1 commented 9 months ago

In addition to PR #3504, I have added the getDownloadFilename() method to the MediaStream download.

This allows custom file names to be utilised within the MediaStream zip generation, while not impacting number appends, etc. I've also written a test to cover this.

Thanks to @justmetalcake for pointing out this issue!

Cheers.

freekmurze commented 9 months ago

Thanks!