Fix Decap image filename validation
This commit is contained in:
@@ -156,6 +156,12 @@ not accept executables, archives, HTML, scripts, or SVG uploads. Asset rights,
|
||||
alt text, crop, dimensions, and optimization remain operator review items even
|
||||
when the CMS accepts an upload.
|
||||
|
||||
Decap's image widget applies its field `pattern` to the selected file's base
|
||||
name, not to the repository-relative media path. Keep that UI pattern limited
|
||||
to the approved raster filename extensions; enforce the full
|
||||
`public/images/uploads` path separately in the schema, verifier, and Gitea
|
||||
branch rules below.
|
||||
|
||||
The media gallery lists only `public/images/uploads`, so the pilot seeds that
|
||||
directory with the images referenced by CMS-controlled fields. Removing an
|
||||
image from content clears the field and uses the page's text-only or initials
|
||||
|
||||
Reference in New Issue
Block a user