Skip to content

@sqlrooms/ai-core / getChatAttachmentMediaType

Function: getChatAttachmentMediaType() ​

getChatAttachmentMediaType(file): string

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

Parameters ​

ParameterType
fileFile

Returns ​

string