# FileFieldDefinition

> Type reference for FileFieldDefinition in the Rippling SDK, including its public shape and related types.

Type-level shape produced by {@link file }.

## Type definition

```
export interface FileFieldDefinition<TRequired extends boolean = false, TSectionKey extends string | undefined = string | undefined> extends FieldDefinitionBase<'file', FileReference, TRequired, true, TSectionKey> {
    readonly allowedType: 'images' | 'documents' | 'any';
}
```

## Related types

-   [FieldDefinitionBase](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldDefinitionBase-16c7690e)
-   [FileReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FileReference-579846c3)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FileFieldDefinition-392696a7

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
