Kotlin : Unsafe file upload