Fix Decap image filename validation
This commit is contained in:
@@ -144,7 +144,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config:
|
||||
max_file_size: 512000
|
||||
@@ -181,7 +181,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: Home hero image description
|
||||
@@ -194,7 +194,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: Home story image description
|
||||
@@ -207,7 +207,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: About hero image description
|
||||
@@ -220,7 +220,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: About story image description
|
||||
@@ -233,7 +233,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: Services hero image description
|
||||
@@ -246,7 +246,7 @@ collections:
|
||||
required: false
|
||||
choose_url: false
|
||||
allow_multiple: false
|
||||
pattern: ['^/images/uploads/[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
|
||||
media_library:
|
||||
config: { max_file_size: 512000, multiple: false }
|
||||
- label: Contact hero image description
|
||||
|
||||
Reference in New Issue
Block a user