mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
allow to send files to chat
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { err, ok } from "neverthrow"
|
||||
|
||||
export function allowedDocExtension(type: string) {
|
||||
if (type == 'application/pdf' || type == 'application/doc' || type == 'application/docx' ||
|
||||
type == 'application/xls' || type == 'application/xlsx' || type == 'application/ppt' ||
|
||||
type == 'application/pptx' || type == 'application/txt') {
|
||||
|
||||
return ok(true)
|
||||
} else {
|
||||
return err(false)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user