function bootstrap() { $uploadpath = $this->getConfig()->get('uploadpath'); if ($uploadpath) { FileStorageBackend::register('F', 'FilesystemStorage'); FilesystemStorage::$base = $uploadpath; FilesystemStorage::$desc = 'Filesystem: ' . $uploadpath; } }