Skip to content

Commit

Permalink
fix(mimeTypes): handle windows zip mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Nov 13, 2023
1 parent 4da7fc8 commit a13930d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/io/mimeTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ export const MIME_TYPES = new Set(Object.values(FILE_EXT_TO_MIME));
/**
* Supported archives
*/
export const ARCHIVE_FILE_TYPES = new Set(['application/zip']);
export const ARCHIVE_FILE_TYPES = new Set([
FILE_EXT_TO_MIME.zip,
// Windows uploads files with this non-standard mime type
'application/x-zip-compressed',
]);

0 comments on commit a13930d

Please sign in to comment.