Add zip previewer

This commit is contained in:
2023-01-17 16:13:26 +01:00
parent c075cb4a72
commit ade760225a
9 changed files with 168 additions and 19 deletions

View File

@@ -37,6 +37,8 @@ export const file_set_href = file => {
export const file_type = file => {
if (file.mime_type === "application/bittorrent" || file.mime_type === "application/x-bittorrent") {
return "torrent"
} else if (file.mime_type === "application/zip") {
return "zip"
} else if (file.mime_type.startsWith("image")) {
return "image"
} else if (