UNPKG

@uppy/utils

Version:

Shared utility functions for Uppy Core and plugins maintained by the Uppy team.

6 lines (5 loc) 228 B
export default function isPreviewSupported(fileType: string): boolean { if (!fileType) return false // list of images that browsers can preview return /^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(fileType) }