这是将单个文件作为 Play 文档上传的代码。多个文件的任何想法?
ws.url(url) .post(Source(FilePart("hello", "hello.txt", Option("text/plain"), FileIO.fromPath(tmpFile.toPath)) :: DataPart("key", "值") :: List()))
这是将单个文件作为 Play 文档上传的代码。多个文件的任何想法?
ws.url(url) .post(Source(FilePart("hello", "hello.txt", Option("text/plain"), FileIO.fromPath(tmpFile.toPath)) :: DataPart("key", "值") :: List()))