Render JSON files as text files

This commit is contained in:
Pixeldrain-Server committed 2023-06-08 14:18:12 +02:00
1 parent 008ffbc4f7
commit f46c4e703d
2 files changed
+2

No files matched your search

@@ -60,6 +60,7 @@ export const file_type = file => {
) {
return "pdf"
} else if (
file.mime_type === "application/json" ||
file.mime_type.startsWith("text")
) {
return "text"