From 427655c17dcc8888b0d6691f3f140e37f87d02c3 Mon Sep 17 00:00:00 2001 From: busma13 Date: Fri, 1 Nov 2024 08:08:48 -0700 Subject: [PATCH] Add note about false positives --- packages/teraslice/src/lib/utils/file_utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/teraslice/src/lib/utils/file_utils.ts b/packages/teraslice/src/lib/utils/file_utils.ts index a425ca398c3..fc5ca1d8d73 100644 --- a/packages/teraslice/src/lib/utils/file_utils.ts +++ b/packages/teraslice/src/lib/utils/file_utils.ts @@ -170,7 +170,10 @@ export async function saveAsset( } /** - * Check if a buffer contains a zip file + * Check if a buffer contains a zip file. + * Note that file extension and mime type are not checked. + * Any file type that is actually a zip (.xlsx, .jar, .apk, + * .epub) will return true. * @param {Buffer} buffer A buffer containing a file file * @returns {boolean} */