Play framework - how to write to public assets
问题 Trying to process uploaded images and then display the result. Was following: https://github.com/playframework/play-scala-fileupload-example Relevant snippet: private def handleFilePartAsFile: FilePartHandler[File] = { case FileInfo(partName, filename, contentType) => val path: Path = Files.createTempFile("multipartBody", "tempFile") val fileSink: Sink[ByteString, Future[IOResult]] = FileIO.toPath(path) val accumulator: Accumulator[ByteString, IOResult] = Accumulator(fileSink) accumulator.map