From fb15a516e3d86e9c320401ee78acda0884c3eec9 Mon Sep 17 00:00:00 2001 From: Streusel Date: Tue, 20 Aug 2024 22:52:32 +0200 Subject: [PATCH] [@mantine/dropzone] Added 7z & rar mime types Added 7z & rar mime types for simpler usage in Dropzone and more aesthetically pleasing usage. Note: rar can supposedly also be represented as [application/vnd.rar](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types), [application/x-rar-compressed](https://en.wikipedia.org/wiki/RAR_(file_format)) and [application/octet-stream](https://simple.wikipedia.org/wiki/RAR_(file_format)) *Source: Mozilla & Wikipedia --- packages/@mantine/dropzone/src/mime-types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@mantine/dropzone/src/mime-types.ts b/packages/@mantine/dropzone/src/mime-types.ts index 01f0475b2cb..cd79ab5be4f 100644 --- a/packages/@mantine/dropzone/src/mime-types.ts +++ b/packages/@mantine/dropzone/src/mime-types.ts @@ -11,6 +11,8 @@ export const MIME_TYPES = { // Documents mp4: 'video/mp4', zip: 'application/zip', + rar: 'application/x-rar', + '7z': 'application/x-7z-compressed', csv: 'text/csv', pdf: 'application/pdf', doc: 'application/msword',