https://kotlinlang.org logo
#ktor
Title
# ktor
s

ShreemanArjun

03/13/2019, 2:35 AM
How i serve static files of a folder to my ktor html dsl files.. help me
b

bdawg.io

03/13/2019, 4:04 AM
1) Setup static content https://ktor.io/servers/features/static-content.html 2) Insert a link in your HTML to a file
Copy code
a("/url/path/to/file") { +"Link to file" }
s

ShreemanArjun

03/13/2019, 6:08 AM
already setup static file. but still cannot access. i am using intellij
404 not found error
b

bdawg.io

03/13/2019, 3:47 PM
There's not enough information given to give further help
3 Views