> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/file-uploader-cargador-de-archivos/propiedades/maxfiles.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# maxFiles

Maximum number of files allowed per upload.

## Details

**Attribute:** `max-files`

**Type:** `number`

**Default value:** `2`

## Syntax

```typescript
uploader.maxFiles = 2;
```

## Description

Maximum number of files the user can upload before submitting them for analysis.

### Considerations

Allowed values: from `1` to `5`. Values outside this range revert to the default and trigger a warning in the console.

***

## Example

```jsx
<facephi-file-uploader-widget
    maxFiles={2}
/>
```
