Mantas Varnagiris
03/22/2020, 3:27 PMfun Route.handleFile() {
post("/handleFile") {
call.respondTextWriter {
appendln("Writing some output while file is being processed")
// Handle file that will create another file for user to download
call.respondFile(outputFile) // I know I cannot do this
}
}
}
Basically I want to run a long running task and show some text to the user about the progress and then after it finished that output file should be downloaded. Is that even possible to do just within ktor?mp
03/22/2020, 4:08 PMMantas Varnagiris
03/22/2020, 4:11 PMmp
03/22/2020, 4:14 PMMantas Varnagiris
03/22/2020, 4:15 PMmp
03/22/2020, 4:23 PMMantas Varnagiris
03/22/2020, 4:23 PMcall.respondFileAndHtml(file) { HTML }
?mp
03/22/2020, 4:49 PMMantas Varnagiris
03/22/2020, 4:51 PMluke
03/24/2020, 2:25 AM