可以采用Servlet平台的解决方法进行解决:
Ok(file.get, Map( "Content-Type" -> (file.contentType.getOrElse("application/octet-stream")), "Content-Disposition" -> ("attachment; filename=" + new String(file.name.getBytes(), "iso8859-1")) ))
可以采用Servlet平台的解决方法进行解决:
Ok(file.get, Map( "Content-Type" -> (file.contentType.getOrElse("application/octet-stream")), "Content-Disposition" -> ("attachment; filename=" + new String(file.name.getBytes(), "iso8859-1")) ))