# filepicker-updated

> Plugin to pick files/images/videos from android or ios.

Latest version **1.0.9** (published 2021-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install filepicker-updated
pnpm add filepicker-updated
yarn add filepicker-updated
bun add filepicker-updated
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2021-07-15 |
| First published | 2021-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 626.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Devmantosh |
| Maintainers | devmantosh2019 |
| Keywords | capacitor, plugin, native |

## Links

- npm: https://www.npmjs.com/package/filepicker-updated
- Repository: https://github.com/mantosh59/capacitor-file-picker
- Homepage: https://github.com/mantosh59/capacitor-file-picker#readme
- Issues: https://github.com/mantosh59/capaitor-file-picker/issues
- npm.io page: https://npm.io/package/filepicker-updated

## Dependencies (1)

- [@capacitor/core](https://npm.io/package/@capacitor/core.md) ^3.0.2

## Recent versions

- 1.0.9 (latest) — 2021-07-15
- 1.0.8 — 2021-07-05
- 1.0.7 — 2021-07-05
- 1.0.6 — 2021-07-05
- 1.0.5 — 2021-07-05
- 1.0.0 — 2021-07-05
- 1.0.2 — 2021-07-05

## README

# Capacitor File Picker

## Description

Plugin to pick files/images/videos from android or ios.

## Installation

- `npm i filepicker-updated`

for Capacitor v2

- `npm i capacitor2-fle-picker`
## Usage

import { FilePicker } from "filepicker-updated"; 

FilePicker.showFilePicker({
  fileTypes: ["image/*", "video/*"],
}).then(
  (fileResult: FilePickerResult) => {
    const fileUri = fileResult.uri;
    const fileName = fileResult.name;
    const fileMimeType = fileResult.mimeType;
    const fileExtension = fileResult.extension;
    const fileSize = fileResult.size;
  },
  (error) => {
    console.log(error);
  }
);
```

---
_Source: https://npm.io/package/filepicker-updated · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
