feat(uploads): accept 15 MB / 8000px and every standard image format
- API ceiling 8 MB -> 15 MB, sharp limitInputPixels 64 MP (8000x8000) - accept AVIF, BMP, TIFF, HEIC/HEIF, JXL alongside JPEG/PNG/WebP/GIF/SVG/PDF; fall back to the file extension when the browser sends an empty or octet-stream type - convert formats browsers cannot paint (TIFF, HEIC, JXL) to WebP on upload - pre-warm 200/400/600/1600 variants so card thumbnails never wait on a render - nginx: client_max_body_size 20m, proxy_read_timeout 180s (the 1m default rejected every real photo with a bare 413, and a slow 8000px render became a 504 that left the card thumbnail broken while /uploads worked) - gallery tile falls back to the original file if a variant fails Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
072344f85e
commit
387222851c
@@ -18,6 +18,12 @@ import { masterOtpCode, masterOtpEnabled } from './modules/customer-auth/custome
|
||||
// content), but a strict client or an <img> under some CSPs would not.
|
||||
const EXTRA_MIME_TYPES: Record<string, string> = {
|
||||
'.avif': 'image/avif',
|
||||
'.bmp': 'image/bmp',
|
||||
'.tif': 'image/tiff',
|
||||
'.tiff': 'image/tiff',
|
||||
'.heic': 'image/heic',
|
||||
'.heif': 'image/heif',
|
||||
'.jxl': 'image/jxl',
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user