Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Media Library to use max fize size value from config #407

Open
timoransky opened this issue Oct 7, 2022 · 0 comments
Open

Improve Media Library to use max fize size value from config #407

timoransky opened this issue Oct 7, 2022 · 0 comments

Comments

@timoransky
Copy link
Contributor

In our Media repository we extend spatie/laravel-medialibrary but our custom MediaCollection model is not taking into account value from config medialibrary.max_file_size.
The only way to use it is for now to set the value in the collection itself like so:

public function registerMediaCollections() {
    $this->addMediaCollection('Example')
        ...
        ->maxFilesize(config('medialibrary.max_file_size'));
}

The point of this issue is to somehow use the config value as the default one.

Link to repository: BRACKETS-by-TRIAD/media

@timoransky timoransky changed the title Improve Media Library to use max upload size from config Improve Media Library to use max fize size value from config Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant