Skip to content

Commit

Permalink
Merge pull request #503 from Kitware/fix-windows-zip-mime
Browse files Browse the repository at this point in the history
fix(mimeTypes): handle windows zip mime type
  • Loading branch information
floryst authored Nov 13, 2023
2 parents 4da7fc8 + a13930d commit 709d462
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 709d462

Please sign in to comment.