如何使用Play Framework 2.6 WsClient上传多个文件?

时间:2018-12-10 12:48:21

标签: scala file-upload playframework akka-stream ws-client

这是用于在Play文档中上传单个文件的代码。 有多个文件的想法吗?

ws.url(url) .post(Source(FilePart(“ hello”,“ hello.txt”,Option(“ text / plain”),FileIO.fromPath(tmpFile.toPath)):: DataPart(“ key”,“ value”)::列表()))

0 个答案:

没有答案
相关问题