Join Slack
Powered by
How i serve static files of a folder to my ktor ht...
# 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
ShreemanArjun
03/13/2019, 6:08 AM
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
Open in Slack
Previous
Next