Sign-in look: the logo is handled as the white label handled it in 1.17.0 (owner, 2026-11-26)

A logo that showed on a site's login screen shows on the new screens: any picture Site settings holds,
an SVG included, as <img>; svgLogo: false refuses SVG (off by default); the list of allowed types is
gone. The look at the file only avoids a broken picture: a file that is gone (404 / 410) or is no picture
gives the name; anything else (no answer, a redirect, another status, over 512 KB) believes the upload.
Redirects are still never followed by the server, and the body is read with the 512 KB cap. A test
checks twelve kinds of logo that 1.17.0 shows. No plate stays the default. Docs, skills, changelog draft.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 22:14:50 +01:00
co-authored by Claude Fable 5.2
parent aef1efac73
commit 24ccc5dc8b
56 changed files with 177 additions and 114 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ if (logoMode !== 'keep') {
if (logoMode !== 'none') {
const file = path.resolve(logoMode)
const res = await api.post('/api/media', {
multipart: { _payload: JSON.stringify({ alt: 'Placeholder logo' }), file: { buffer: readFileSync(file), mimeType: 'image/png', name: path.basename(file) } },
multipart: { _payload: JSON.stringify({ alt: 'Placeholder logo' }), file: { buffer: readFileSync(file), mimeType: file.endsWith('.svg') ? 'image/svg+xml' : 'image/png', name: path.basename(file) } },
})
uploaded = (await res.json())?.doc?.id
if (!uploaded) {throw new Error(`the logo was not uploaded (${res.status()})`)}