---
title: "openfilesdialog"
description: "Shows a multi-select Windows chooser."
---

```lua
openfilesdialog(filter: string?, title: string? = "Open Files"): {string}
```

---

## Aliases

None.

---

## Arguments

<ParamField body="filter" type="string">
  A NUL-separated Win32 filter string containing label/pattern pairs.
</ParamField>

<ParamField body="title" type="string" default={"\"Open Files\""}>
  The native dialog title.
</ParamField>

---

## Returns

<ResponseField name="paths" type="{string}">
  An array of absolute selected paths; empty on cancel/native failure.
</ResponseField>

Returns an empty array on cancel/failure, not nil. Paths are absolute.

---

## Example

```lua
for _, path in ipairs(openfilesdialog()) do print(path) end
```
