Merge claude/login-page-whitelabel-616f3d: the sign-in logo as 1.17.0's login screen shows it (SVG as an image, no plate)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -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()})`)}
|
||||
|
||||
Reference in New Issue
Block a user