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

bohregard

12/16/2021, 3:21 PM
Does the routing layer for multipart have a way to deny requests that don’t match a certain file type? For instance, the route will only accept images and throw a BAD REQUEST when any other file is uploaded.
Or does this need to be handled manually in the
receiveMultipart
function
Nvm, I found it on the content type for each part.