# uploadContentType

<!-- https://uncage.vercel.app/docs/api/client/functions/uploadcontenttype/ -->

```ts
function 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

| Parameter | Type |
| ------ | ------ |
| `file` | \{ `name`: `string`; `type`: `string`; \} |
| `file.name` | `string` |
| `file.type` | `string` |

## Returns

`string`
