# FileOpenOptions

What the person is asked to choose from, and how much may be read.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { FileOpenOptions } from "@mapcairn/core";
 
interface FileOpenOptions
```

## Properties

### accept

```ts
readonly accept: readonly string[];
```

The file types the picker offers, as extensions (`.geojson`) and media
types (`application/geo+json`). The picker may still let the person
choose any file, so the caller checks what it reads.

### maxBytes

```ts
readonly maxBytes: number;
```

The largest file that is read, in bytes. A larger one is refused before it is read.

### signal

```ts
readonly signal?: AbortSignal;
```

Cancels the open: a pending picker settles as `cancelled`.

Source: [packages/core/src/ports/files.ts:29](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/files.ts#L29)
