/** * Shared binary file extension constants. * Single source of truth used by both backend (file-type-detection) and frontend (file-type). */ /** * Image formats browsers can render directly in an `` tag. * Only these are previewed — formats the browser can't decode (TIFF/HEIC/…) * are treated as non-previewable binaries to avoid costly server-side transcoding. */ export const IMAGE_EXTENSIONS = new Set([ '.png', '.jpg', '.jpeg', '.gif', '.webp', '.bmp', '.ico', '.avif', '.apng', '.jfif', ]); /** Audio formats rendered via the `