Skip to content

Commit f9032e4

Browse files
authored
Merge pull request #20999 from caroott/zip_explore_fix_windows
[25.0] Improves zip file type detection for uploads under windows
2 parents 4f996c9 + 456cfca commit f9032e4

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)