From 6de54132a2d392fbf0a64adaca1b542725be88d6 Mon Sep 17 00:00:00 2001 From: mahmoudadel54 Date: Fri, 24 Jan 2025 17:29:00 +0200 Subject: [PATCH] #10770: Vector files import limits Description: - rename the configurable prop name of vector max size to 'importedVectorFileMaxSizeInMB' instead of 'importedVectorFileSizeInMB' to be more meaningful --- .../components/import/dragZone/enhancers/processFiles.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/components/import/dragZone/enhancers/processFiles.jsx b/web/client/components/import/dragZone/enhancers/processFiles.jsx index 96f8434025..f3a48222eb 100644 --- a/web/client/components/import/dragZone/enhancers/processFiles.jsx +++ b/web/client/components/import/dragZone/enhancers/processFiles.jsx @@ -68,7 +68,7 @@ const readFile = (onWarnings) => (file) => { const ext = recognizeExt(file.name); const type = file.type || MIME_LOOKUPS[ext]; // Check the file size first before file conversion process to avoid this useless effort - const configurableFileSizeLimitInMB = getConfigProp('importedVectorFileSizeInMB'); + const configurableFileSizeLimitInMB = getConfigProp('importedVectorFileMaxSizeInMB'); const isVectorFile = type !== 'application/json'; // skip json as json is for map file if (configurableFileSizeLimitInMB && isVectorFile) { if (isFileSizeExceedMaxLimit(file, configurableFileSizeLimitInMB)) {