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