uploadContentType
View as Markdownfunction uploadContentType(file): string;Defined in: client/src/client.ts:189
Canonical Content-Type for an upload: browsers often leave type empty or send image/jpg.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
file |
{ name: string; type: string; } |
file.name |
string |
file.type |
string |
Returns
Section titled “Returns”string