Skip to content

@serenity-is/corelib / UploadHelper / hasImageExtension

Function: hasImageExtension()

hasImageExtension(filename): boolean

Defined in: src/ui/helpers/uploadhelper.tsx:169

Returns whether the given filename has a common image extension.

Parameters

filename

string

The filename to check.

Returns

boolean

True if the filename ends with a known image extension.