protected function prepareFile($data = 'abcd', $extra = []) { $collection = $this->getGridFS(); // to make sure we have multiple chunks $extra += ['chunkSize' => 2]; return $collection->storeBytes($data, $extra); }