Skip to main content

File Types

Processing in Typescript

export const acceptedFileTypes = {
"application/msword": [".doc", ".dot"],
"application/pdf": [".pdf"],
"application/rtf": [".rtf"],
"application/vnd.ms-excel": [".xls"],
"application/vnd.ms-excel.sheet.macroEnabled.12": [".xlsm"],
"application/vnd.ms-powerpoint": [".pot", ".pps", ".ppt"],
"application/vnd.ms-powerpoint.presentation.macroEnabled.12": [".pptm"],
"application/vnd.ms-word.document.macroEnabled.12": [".docm"],
"application/vnd.ms-word.template.macroEnabled.12": [".dotm"],
"application/vnd.openxmlformats-officedocument.presentationml.presentation": [".pptx"],
"application/vnd.openxmlformats-officedocument.presentationml.template": [".potx"],
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [".docx"],
"application/vnd.openxmlformats-officedocument.wordprocessingml.template": [".dotx"],
"application/wpd": [".wpd"],
"application/xhtml+xml": [".xhtml"],
"image/bmp": [".bmp"],
"image/gif": [".gif"],
"image/heic": [".heic"],
"image/jpeg": [".jpeg", ".jpg"],
"image/png": [".png"],
"image/tiff": [".tif", ".tiff"],
"text/csv": [".csv"],
"text/html": [".htm", ".html"],
"text/plain": [".txt"],
};