如何使用toStrict作为例外子流源无法多次实现
这是我的来源
val fileUploadRote = {
(post & extractRequestContext & entity(as[String])) { (request, textReq) =>
extractRequestContext {
formFieldMultiMap { fields =>
println("There are " +
s"form fields ${fields.map(x => x._1 + " -> " + x._2.size).mkString(", ")}")
var companyId = fields.get("companyId").getOrElse(List.empty)
var subCompanyId = fields.get("subCompanyId").getOrElse(List.empty)
....................//File Upload code
}
}
}
}