Skip to content

@sqlrooms/ai / getChatAttachmentMediaType

Function: getChatAttachmentMediaType()

getChatAttachmentMediaType(file): string

Supplies a useful media type when a browser leaves File.type empty.

Parameters

ParameterType
fileFile

Returns

string