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

# Class: VFileInput<Type, IsOptional>

> An operation input whose value is a staged file.

[values](/api/modules/values).VFileInput

An operation input whose value is a staged file.

## Type parameters

| Name | Type |
| :- | :- |
| `Type` | [`StagedFileRef`](/api/modules/values#stagedfileref) |
| `IsOptional` | extends [`OptionalProperty`](/api/modules/values#optionalproperty) = `"required"` |

## Hierarchy

* [`VString`](/api/classes/values.VString)\<`Type`, `IsOptional`>

  ↳ **`VFileInput`**

## Properties

### fileInput

• `Readonly` **fileInput**: `Readonly`\<`FileInputDeclaration`>

***

### type

• `Readonly` **type**: `Type`

Only for TypeScript, the TS type of the JS values validated
by this validator.

#### Inherited from

[VString](/api/classes/values.VString).[type](/api/classes/values.VString#type)

***

### fieldPaths

• `Readonly` **fieldPaths**: `never`

Only for TypeScript, if this an Object validator, then
this is the TS type of its property names.

#### Inherited from

[VString](/api/classes/values.VString).[fieldPaths](/api/classes/values.VString#fieldpaths)

***

### isOptional

• `Readonly` **isOptional**: `IsOptional`

Whether this is an optional Object property value validator.

#### Inherited from

[VString](/api/classes/values.VString).[isOptional](/api/classes/values.VString#isoptional)

***

### isConvexValidator

• `Readonly` **isConvexValidator**: `true`

Always `"true"`.

#### Inherited from

[VString](/api/classes/values.VString).[isConvexValidator](/api/classes/values.VString#isconvexvalidator)

***

### kind

• `Readonly` **kind**: `"string"`

The kind of validator, `"string"`.

#### Inherited from

[VString](/api/classes/values.VString).[kind](/api/classes/values.VString#kind)

## Methods

### optional

▸ **optional**(): [`VFileInput`](/api/classes/values.VFileInput)\<`undefined` | `Type`, `"optional"`>

Allow this validated field to be absent.

#### Returns

[`VFileInput`](/api/classes/values.VFileInput)\<`undefined` | `Type`, `"optional"`>

#### Overrides

[VString](/api/classes/values.VString).[optional](/api/classes/values.VString#optional)

***

### asOptional

▸ **asOptional**(): [`VFileInput`](/api/classes/values.VFileInput)\<`undefined` | `Type`, `"optional"`>

#### Returns

[`VFileInput`](/api/classes/values.VFileInput)\<`undefined` | `Type`, `"optional"`>

#### Overrides

VString.asOptional


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.