ImportModal: Increase maxSize

This increases limit for the maximum size of a blueprint.
This commit is contained in:
regexowl 2025-02-17 13:59:39 +01:00 committed by Sanne Raymaekers
parent 609397d411
commit bf704af1e7

View file

@ -266,7 +266,7 @@ export const ImportBlueprintModal: React.FunctionComponent<
browseButtonText="Upload"
dropzoneProps={{
accept: { 'text/json': ['.json'], 'text/plain': ['.toml'] },
maxSize: 25000,
maxSize: 512000,
onDropRejected: handleFileRejected,
}}
validated={isRejected || isInvalidFormat ? 'error' : 'default'}
@ -279,7 +279,7 @@ export const ImportBlueprintModal: React.FunctionComponent<
}
>
{isRejected
? 'Must be a valid Blueprint JSON/TOML file no larger than 25 KB'
? 'Must be a valid Blueprint JSON/TOML file no larger than 512 KB'
: isInvalidFormat
? 'Not compatible with the blueprints format.'
: isOnPrem