2023-09-28 12:29:55 +03:00
|
|
|
import { SupportedFileExtensionsWithDot } from "@/lib/types/SupportedFileExtensions";
|
|
|
|
|
|
|
|
export const acceptedFormats: Record<string, SupportedFileExtensionsWithDot[]> =
|
|
|
|
{
|
|
|
|
"text/plain": [".txt"],
|
|
|
|
"text/csv": [".csv"],
|
|
|
|
"text/markdown": [".md", ".markdown"],
|
|
|
|
"audio/x-m4a": [".m4a"],
|
|
|
|
"audio/mpeg": [".mp3", ".mpga", ".mpeg"],
|
|
|
|
"audio/webm": [".webm"],
|
|
|
|
"video/mp4": [".mp4"],
|
|
|
|
"audio/wav": [".wav"],
|
|
|
|
"application/pdf": [".pdf"],
|
|
|
|
"text/html": [".html"],
|
2023-11-02 00:09:04 +03:00
|
|
|
"text/telegram": [".telegram"],
|
|
|
|
|
2023-09-28 12:29:55 +03:00
|
|
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
|
|
[".pptx"],
|
|
|
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
|
|
|
|
".docx",
|
|
|
|
],
|
|
|
|
"application/vnd.oasis.opendocument.text": [".odt"],
|
|
|
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [
|
|
|
|
".xlsx",
|
|
|
|
".xls",
|
|
|
|
],
|
|
|
|
"application/epub+zip": [".epub"],
|
|
|
|
"application/x-ipynb+json": [".ipynb"],
|
|
|
|
"text/x-python": [".py"],
|
|
|
|
};
|