> 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/maxfilesize.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# maxFileSize

Maximum size per file in megabytes.

## Details

**Attribute:** `max-file-size`

**Type:** `number`

**Supported values:** From `1`to `50`

**Default value:** `2.25`

## Shape

```typescript
uploader.maxFileSize = 2.25;
```

## Description

Maximum allowed size, in megabytes, for each uploaded file.

### Considerations

Allowed values: from `1` to `50`. Values outside this range cause the default value to be applied and a warning to be displayed in the console.

***

## Example

```jsx
<facephi-file-uploader-widget
    maxFileSize={10}
/>
```
