> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InputFileOptions

Input options for defining a file to be uploaded with 'setInputFiles'.

## Definition

```graphql theme={null}
input InputFileOptions {
  name: String!
  mimeType: String!
  data: String!
  encoding: BufferEncoding
}
```

## Fields

### `name`

[String!](/reference/graphql/scalars/string)

The name of the file. Example: `"document.pdf"`.

### `mimeType`

[String!](/reference/graphql/scalars/string)

The MIME type of the file. Example: `"application/pdf"`.

### `data`

[String!](/reference/graphql/scalars/string)

The content of the file, Base64 encoded.
Example: `"JVBERi0xLjQKJ..."` (for a PDF)

### `encoding`

[BufferEncoding](/reference/graphql/enums/buffer-encoding)

Specifies the encoding of the original data if the `data` field represents text that was then Base64 encoded (e.g., a text file's content).
Common values include `UTF8` or `ASCII`.
If the `data` field is Base64 encoded binary (like an image), this field is often not needed or can be omitted.
See `BufferEncoding` enum.
