You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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:
The point of this issue is to somehow use the config value as the default one.
Link to repository: BRACKETS-by-TRIAD/media
The text was updated successfully, but these errors were encountered: