object UploadedFilesService (source)
To manage uploaded files.
attachmentType |
fun attachmentType(url: String): AttachmentType |
downloadFile |
fun downloadFile(context: RoutingContext, id: String, suffix: String): Unit |
getFileContentFromUrl |
fun getFileContentFromUrl(url: String): ByteArray? |
guessContentType |
fun guessContentType(fileName: String): String |
uploadFile |
fun uploadFile(namespace: String, fileName: String, bytes: ByteArray): MediaFileDescriptor? |