For this recipe, perform the following steps:
- First, create the server portion of the recipe. Create a file named UploadingFileServerApplication.scala inside the com.packt.chapter9 package. The content should be as follows:
package com.packt.chapter9 import akka.http.scaladsl.model.Multipart import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.HttpApp import akka.http.scaladsl.settings.ServerSettings import akka.stream.scaladsl.Framing import akka.util.ByteString import com.typesafe.config.ConfigFactory import scala.concurrent.duration._ object UploadingFileServer extends HttpApp { val route = extractRequestContext { ctx => implicit val materializer = ctx.materializer implicit val ec = ctx.executionContext ...