Skip to content

Commit 456cfca

Browse files
committed
Improves zip file type detection for uploads
Recognizes both "application/zip" and "application/x-zip-compressed" MIME types to support windows uploads and prevent false negatives when validating local zip files.
1 parent 4f996c9 commit 456cfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/composables/zipExplorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export function validateLocalZipFile(file?: File | null): string {
310310
}
311311

312312
export function isLocalZipFile(file?: File | null): boolean {
313-
return Boolean(file) && file?.type === "application/zip";
313+
return Boolean(file) && (file?.type === "application/zip" || file?.type === "application/x-zip-compressed");
314314
}
315315

316316
export async function isRemoteZipFile(url: string): Promise<boolean> {

0 commit comments

Comments
 (0)