[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / mediaPicker

# Function: mediaPicker()

> **mediaPicker**(`key`): [`Field`](../classes/Field)

Defined in: [admin/src/form/Field.ts:811](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/form/Field.ts#L811)

Pick a file from the media library, or upload a new one into it.

The difference from [fileUpload](fileUpload) is reuse: an upload field puts a file
somewhere and forgets it, while this one catalogues what it stores, so the
same image can be chosen again from anywhere in the panel. Needs a media
provider on the panel; without one it behaves as a plain upload.

## Parameters

### key

`string`

## Returns

[`Field`](../classes/Field)
