this would be nicer as

    for {
      x <- acceptedFileName
      y <- acceptedFileExtension
    } yield s"etc/$x.$y"