From 8f9196da5465677fc00828ced1ccad43d6adaeba Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Thu, 19 Dec 2024 03:55:06 +0100 Subject: [PATCH] feat: add support for uploading Google Chrome downloads We want to allow for uploading incomplete Google Chrome downloads. --- src/lib/storage/checks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/storage/checks.ts b/src/lib/storage/checks.ts index 0e886de2..7bbea707 100644 --- a/src/lib/storage/checks.ts +++ b/src/lib/storage/checks.ts @@ -40,6 +40,9 @@ export const isPotentialZipFile = ( if (!filename) { return false; } + if (filename.toLowerCase().endsWith('.crdownload')) { + return true; + } return filename.trim().endsWith('.') || !filename.includes('.'); };