coasterframework icon indicating copy to clipboard operation
coasterframework copied to clipboard

FileManager config.php variables being ignored

Open Dannymx opened this issue 8 years ago • 1 comments

So I was trying to increase the file size limit for the uploads and I noticed that setting the 'MaxSizeUpload' variable to anything different was not taking effect, so I scrolled down in the file and I found the setConfig function that replaces all the variables but the ignore array is empty so all my custom settings are being overridden.

Line 364: \CoasterCms\Helpers\Admin\FileManager::setConfig($config, ['MaxSizeUpload']);

That helped me to keep my variable as I wanted. Not sure if this was intended or I'm just setting my variables wrong.

Dannymx avatar Sep 18 '17 20:09 Dannymx

The $ignore param you've found was added as a temporary work around. Be aware that the change will be lost when the update assets script is run and a new version of the filemanager is downloaded.

I plan to add proper settings for these after I've organised the settings page in the Coaster a bit, so the list doesn't grow too long.

neil-jennings avatar Sep 19 '17 15:09 neil-jennings