=htc, doc replace usages of deprecated methods of FileIO (#20928)
This commit is contained in:
parent
c81ea4f36b
commit
32810e1f1d
12 changed files with 34 additions and 26 deletions
|
|
@ -35,7 +35,7 @@ class FileUploadExamplesSpec extends RoutingSpec {
|
|||
// stream into a file as the chunks of it arrives and return a future
|
||||
// file to where it got stored
|
||||
val file = File.createTempFile("upload", "tmp")
|
||||
b.entity.dataBytes.runWith(FileIO.toFile(file)).map(_ =>
|
||||
b.entity.dataBytes.runWith(FileIO.toPath(file.toPath)).map(_ =>
|
||||
(b.name -> file))
|
||||
|
||||
case b: BodyPart =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue