[FIX] Add missing .png to clipboard uploaded file name (#23833)
parent
955d67e06f
commit
dce8a147e4
@ -0,0 +1,14 @@ |
||||
const extensionsMap: Record<string, string> = { |
||||
'image/apng': 'apng', |
||||
'image/avif': 'avif', |
||||
'image/gif': 'gif', |
||||
'image/jpeg': 'jpg', |
||||
'image/png': 'png', |
||||
'image/svg+xml': 'svg', |
||||
'image/webp': 'webp', |
||||
'image/bmp': 'bmp', |
||||
'image/x-icon': 'ico', |
||||
'image/tiff': 'tif', |
||||
}; |
||||
|
||||
export const getImageExtensionFromMime = (mime: string): string | undefined => extensionsMap[mime]; |
||||
Loading…
Reference in new issue