Use 'application/txt' when sending text files

This commit is contained in:
Naveen 2022-11-07 15:35:57 +05:30
parent 40a77118bf
commit 1e67cd0fdf
3 changed files with 15 additions and 2 deletions

View file

@ -43,3 +43,7 @@ fun String.isPdfMimeType(): Boolean {
fun String.isZipMimeType(): Boolean {
return lowercase().endsWith("zip")
}
fun String.isPlainTextMimeType(): Boolean {
return lowercase().startsWith("text")
}