---
id: "P:cAlgo.API.DropZone.FilterExtensions"
kind: "property"
type: "T:cAlgo.API.DropZone"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/DropZone/FilterExtensions/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# DropZone.FilterExtensions

Member of [DropZone](https://help.ctrader.com/ctrader-algo/references/Controls/DropZone/index.md).

## FilterExtensions

Gets or sets the file extensions filter.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public string[] FilterExtensions {get; set;}
```

Python:

```python
dropZone.FilterExtensions: list[str]
```

### Returns

`string[]` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var dropZone = new DropZone { Child = new TextBlock { Text = "Drop CSV or TXT files" }, FilterExtensions = new[] { "csv", "txt" } };
Chart.AddControl(dropZone);
Print("Accepted extensions: {0}", string.Join(", ", dropZone.FilterExtensions));
```

Python:

```python
dropZone = DropZone()
child = TextBlock()
child.Text = "Drop CSV or TXT files"
dropZone.Child = child
dropZone.FilterExtensions = ["csv", "txt"]
api.Chart.AddControl(dropZone)
```

