# CreateUploadUrlInput (/api/reference/inputs/create-upload-url-input)

The file to be uploaded.

```graphql
input CreateUploadUrlInput {
  filename: String!
  mimeType: String!
  ownerId: String
  purpose: UploadPurpose!
}
```

### Fields [#fields]

#### [`CreateUploadUrlInput.filename`](#filename) · [`String!`](/api/reference/scalars/string) `non-null` `scalar` [#filename]
The file's name. The key keeps its last 120 characters, with any character but letters, digits, `_`, `.` and `-` replaced. 1,000 characters at most.

#### [`CreateUploadUrlInput.mimeType`](#mime-type) · [`String!`](/api/reference/scalars/string) `non-null` `scalar` [#mime-type]
The file's content type, such as `application/pdf`. The file must be sent with the same type. 200 characters at most.

#### [`CreateUploadUrlInput.ownerId`](#owner-id) · [`String`](/api/reference/scalars/string) `scalar` [#owner-id]
The id of what the file belongs to: a job, a candidate, an inbox thread. It only groups the file in storage, with any character but letters, digits, `_`, `.` and `-` replaced. 120 characters at most.

#### [`CreateUploadUrlInput.purpose`](#purpose) · [`UploadPurpose!`](/api/reference/enums/upload-purpose) `non-null` `enum` [#purpose]
What the file is for.

### Member Of [#member-of]

[`createUploadUrl`](/api/reference/mutations/create-upload-url)  `mutation`