export const acceptedExtensions = [ { name: "video" }, { name: "pdf" }, { name: "mov" }, { name: "mp4" }, { name: "docx" }, { name: "xlsx" }, ]; export const videoExtensions = [ { type: "mov" }, { type: "mp4" }, { type: "m4v" }, { type: "webm" }, { type: "mkv" }, { type: "avi" }, { type: "wmv" }, { type: "flv" }, { type: "mpg" }, { type: "mpeg" }, { type: "3gp" }, { type: "3gpp" }, { type: "hevc" }, ]; /** * Extensions that should be treated as documents (Word-family + OpenDocument * Text + RTF + Apple Pages + WordPerfect). Used to route to the document * icon and the "document" file category. */ export const documentExtensions = [ { type: "doc" }, { type: "docx" }, { type: "odt" }, { type: "fodt" }, { type: "rtf" }, { type: "pages" }, { type: "wpd" }, ]; /** * Extensions that should be treated as spreadsheets (Excel-family + * OpenDocument Spreadsheet + Apple Numbers + CSV). Used to route to the * spreadsheet icon and the "spreadsheet" file category. */ export const spreadsheetExtensions = [ { type: "xls" }, { type: "xlsx" }, { type: "ods" }, { type: "fods" }, { type: "numbers" }, { type: "csv" }, ]; /** * Substring patterns matched against the `Content-Type` MIME string for * documents. Substring rather than exact match because real-world MIMEs * vary widely (e.g. `application/msword`, * `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, * `application/vnd.oasis.opendocument.text`). */ export const documentMimePatterns = [ "msword", "ms-word", "wordprocessingml", "opendocument.text", "rtf", ]; /** * Substring patterns matched against the `Content-Type` MIME string for * spreadsheets. */ export const spreadsheetMimePatterns = [ "ms-excel", "spreadsheetml", "opendocument.spreadsheet", "csv", ];