[ 'input', L10n::t('Storage base path'), self::getBasePath(), L10n::t('Folder where uploaded files are saved. For maximum security, This should be a path outside web server folder tree') ] ]; } public static function saveOptions($data) { $storagepath = defaults($data, 'storagepath', ''); if ($storagepath === '' || !is_dir($storagepath)) { return [ 'storagepath' => L10n::t('Enter a valid existing folder') ]; }; Config::set('storage', 'filesystem_path', $storagepath); return []; } }