Hello. I wanted to respond with file, but by defau...
# ktor
r
Hello. I wanted to respond with file, but by default, downloaded file is named by route. How can it be changed? Example:
Copy code
get("someRoute"){
    call.respondFile(someFile)
}
Downloaded file will be named "someRoute". Can I change it?
n
a
@Rafał Kuźmiński what do you mean by downloaded file?
r
@nschulzke Yes, that was it, thank you @Aleksei Tirman [JB] well I ment situation when I open this route in browser, and file gets downloaded by it