tock / ai.tock.bot.engine.config / UploadedFilesService

# UploadedFilesService

`object UploadedFilesService` (source)

To manage uploaded files.

### Functions

#### 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?`