public function saveFromFileUpload(object $file, array $options): ?Media 	{ 		if (!$file->isValid()) { 			return null; 		}  		$name = $file->getClientOriginalName();  		return $this->model->addMedia($file) 			->usingFileName($options['name'] ?? $this->generateFileName($name)) 			->usingName(pathinfo($options['name'] ?? $name, PATHINFO_FILENAME)) 			->toMediaCollection($options['collection']); 	}