Skip to content

Commit

Permalink
#10770: Vector files import limits
Browse files Browse the repository at this point in the history
Description:
- rename the configurable prop name of vector max size to 'importedVectorFileMaxSizeInMB' instead of 'importedVectorFileSizeInMB' to be more meaningful
  • Loading branch information
mahmoudadel54 committed Jan 24, 2025
1 parent 3aa5a40 commit 6de5413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6de5413

Please sign in to comment.