{"versions":{"1.0.0":{"name":"community-cordova-plugin-file-chooser","version":"1.0.0","types":"./types/index.d.ts","repository":{"type":"git","url":"EYALIN/community-cordova-plugin-file-chooser/tree/master"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","funding":"https://github.com/sponsors/EYALIN","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"description":"A plugin for file chooser","_id":"community-cordova-plugin-file-chooser@1.0.0","gitHead":"1b4f3acfbcec5fe3b4ce22b32f24e87d3d0f0e3d","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-cbR3mMUBWto3bMQhu7z81fv3SxkGCcd483PULt2aNu+6YzbFQG+hWuhQtvJAEffpiptFjfx5zyJD7fgGQ3UPjg==","shasum":"c51403abf57b3b527fafb3fee128bc23253e74d4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.0.tgz","fileCount":10,"unpackedSize":13088,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc3dY7TNzRP53QvwrLzisIAfCc3FNVNVXhDUx1k18EnQIhAKLioAC7sbDv+we/PRNWr7Nk8PN4u590S9amgBW+EzzA"}],"size":4876},"_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.0_1729579031767_0.7182454795238296"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-22T06:37:11.956Z","publish_time":1729579031956,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"community-cordova-plugin-file-chooser","version":"1.0.1","_id":"community-cordova-plugin-file-chooser@1.0.1","maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"dist":{"shasum":"5d7a9797613d3510357124a06f24b4b67cb222e9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.1.tgz","fileCount":10,"integrity":"sha512-n3Bj9IgHVU2EB+nkuAVsLUQtt2rW0u8Top75Gan6895BtLzWu05AtsTMRx2CImnH7vket+q88tVi1/vcpYUgyw==","signatures":[{"sig":"MEUCIQDGBFwXS4JJxr11mSb7y3eBvlKTorAaxoDF2uFbaiQ/RAIgBOgEXz8KqMvAeukfJtKf7G62qTh86jsPVdf9t+c/NTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12212,"size":4695},"types":"./types/index.d.ts","cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"funding":"https://github.com/sponsors/EYALIN","gitHead":"1b4f3acfbcec5fe3b4ce22b32f24e87d3d0f0e3d","_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"repository":{"url":"EYALIN/community-cordova-plugin-file-chooser/tree/master","type":"git"},"_npmVersion":"10.7.0","description":"A plugin for file chooser","directories":{},"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/community-cordova-plugin-file-chooser_1.0.1_1729621820936_0.7399831068637694","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-10-22T18:30:21.149Z","publish_time":1729621821149,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"community-cordova-plugin-file-chooser","version":"1.0.2","_id":"community-cordova-plugin-file-chooser@1.0.2","maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"dist":{"shasum":"478ef3c76e38fba06e6eca017959757a491862f3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.2.tgz","fileCount":10,"integrity":"sha512-FZiG0BKE02cMlzzidFMn4pSbWitKMjfEDGtfIGO67r6Zrx1UbUwPhEsxnMimKvMAM/KJiOZ9xaImKIrm/cz4/w==","signatures":[{"sig":"MEUCIG6y7VNUinpGV7JB08TwWOQfyzkcmV+a1D43NVg1SHWQAiEAoFWZWBbdL3TXEkAm4He1Qtm5w3oe7cRQq62SIT6ZbL4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14066,"size":5251},"types":"./types/index.d.ts","cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"funding":"https://github.com/sponsors/EYALIN","gitHead":"0e61a78350ba04e9a199e3cc3a3871857ebdba98","_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"repository":{"url":"EYALIN/community-cordova-plugin-file-chooser/tree/master","type":"git"},"_npmVersion":"10.7.0","description":"A plugin for file chooser","directories":{},"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/community-cordova-plugin-file-chooser_1.0.2_1729623822213_0.044384841771812455","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-10-22T19:03:42.425Z","publish_time":1729623822425,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"community-cordova-plugin-file-chooser","version":"1.0.3","types":"./types/index.d.ts","repository":{"type":"git","url":"EYALIN/community-cordova-plugin-file-chooser/tree/master"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","funding":"https://github.com/sponsors/EYALIN","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"description":"A plugin for file chooser","_id":"community-cordova-plugin-file-chooser@1.0.3","gitHead":"0e61a78350ba04e9a199e3cc3a3871857ebdba98","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-mXkOE63yUyzVb1pTewfOhUdmA9eRILxcOqvLKygCjo+ukEaU2iHXo46ue3oW9ai6AFm/iBTvor67w4SkOCC13A==","shasum":"60b58855aecfc745acc2cc5ccb21a46965659793","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.3.tgz","fileCount":10,"unpackedSize":13883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ/6Y/VSHpo1GR2flMLTplk1oi3/3b0Cqbc8EiWmTFxQIgcsvTbwNHwmCUmpV9uXkThGtcmXe23reSnZxZYPo7xxY="}],"size":5193},"_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.3_1729624638301_0.8935637056403751"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-22T19:17:18.471Z","publish_time":1729624638471,"_source_registry_name":"default","contributors":[]},"1.0.4":{"name":"community-cordova-plugin-file-chooser","version":"1.0.4","types":"./types/index.d.ts","repository":{"type":"git","url":"EYALIN/community-cordova-plugin-file-chooser/tree/master"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","funding":"https://github.com/sponsors/EYALIN","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"description":"A plugin for file chooser","_id":"community-cordova-plugin-file-chooser@1.0.4","gitHead":"8febdd2c7fee07a506220e2195efe3891ddf56e9","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-xq4cNuTPHnifS9HI8FHj3eszn1pdcXoerU0y1M3yEiuHc7PyczMtS9l9CRuORAiiYYtv8jG/aM1gGJuaZf8D5A==","shasum":"700dad1bc37e43aa0b4a06c3c7728b358a080cba","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.4.tgz","fileCount":10,"unpackedSize":14016,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAUt0si87v0ndl0gamkmcdIlfGMIplF1sDEC70xFr/keAiEAnsefaw6XiUrzkIErwe4WzgUdye0FHTHKWrTymSGpmy4="}],"size":5239},"_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.4_1746102523247_0.9061961587889003"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-01T12:28:43.469Z","publish_time":1746102523469,"_source_registry_name":"default","contributors":[]},"1.0.5":{"name":"community-cordova-plugin-file-chooser","version":"1.0.5","types":"./types/index.d.ts","repository":{"type":"git","url":"EYALIN/community-cordova-plugin-file-chooser/tree/master"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","funding":"https://github.com/sponsors/EYALIN","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"description":"A plugin for file chooser","_id":"community-cordova-plugin-file-chooser@1.0.5","gitHead":"ffb0e774383a39704abe06baf7ab7c9353dbe4ee","_nodeVersion":"22.17.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-x27m7d+KY2aebwWjva0jt06K7rYWk8dzJGxIuZS8XlxxofKG2h/wp4SH4ykRh3rjgUqeW+b0BfICCFed6i+rGA==","shasum":"327972cbae298b059c8901b079a48c8f554842b2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.5.tgz","fileCount":10,"unpackedSize":14017,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDHN5gZU/G1gUMIpwI23rS40dChNQYU9lHKQiU8YVRaXQIhAKdPJ8lnnfGdRg1T6oCzP3Al3UlUSorfe3m37dtzgIO3"}],"size":5234},"_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.5_1769973896204_0.9515594242272247"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-01T19:24:56.345Z","publish_time":1769973896345,"_source_registry_name":"default","contributors":[]},"1.0.6":{"_id":"community-cordova-plugin-file-chooser@1.0.6","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"dist":{"shasum":"d3f60785a8b4dd3b0c7f4c819f96aed4d278c718","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.6.tgz","fileCount":10,"integrity":"sha512-RxM4cPHUE65udYvc9nnnlLNcVGgJrVy6+kmvi1Yz/V89LUCX/WW/bO514yJxXFLiSU67zSpwJCMtM6nga4gMnQ==","signatures":[{"sig":"MEUCIQDex396fWf3fc40wxMygKlyvpQ+wvVypn3zxek8MtGkKwIgZm+MzBHCSuVKo7ZABPDLUnone4UIXXBts8UVTIi7qXA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGXH1IthD/hEBOmeveVzDPZtQ9TpHok0uf9a4ZFf0F5+AiAEHWjZFO/HCE/fwYBFcImaAMKvDZkZGpDxZXViccijXw=="}],"unpackedSize":16240,"size":5904},"name":"community-cordova-plugin-file-chooser","types":"./types/index.d.ts","cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"funding":"https://github.com/sponsors/EYALIN","gitHead":"94b8e86420f8024e19bc435e5bdc084a2973bb8e","version":"1.0.6","_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","repository":{"url":"EYALIN/community-cordova-plugin-file-chooser/tree/master","type":"git"},"_npmVersion":"10.9.8","description":"A plugin for file chooser","directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.6_1790490106201_0.24826142263002393"},"_cnpmcore_publish_time":"2026-09-27T06:21:46.287Z","publish_time":1790490106287,"_source_registry_name":"default","contributors":[]},"1.0.7":{"_id":"community-cordova-plugin-file-chooser@1.0.7","bugs":{"url":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/issues"},"dist":{"shasum":"1fd7f5faef1e13b0a59d2d4fa0e59ff6d946f493","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/community-cordova-plugin-file-chooser/-/community-cordova-plugin-file-chooser-1.0.7.tgz","fileCount":9,"integrity":"sha512-Csy7qRv1VtnwzTC10DoiPUK3iIdSbLLlZSHmzz2cRdFiX2tOLnMTaa1GtCikdhVbgyWwpj+CN84/8WNzqFkWdA==","signatures":[{"sig":"MEUCIQDwBphKpsVJbXI7e2Gzs4z4yXX9n/g7tFkwi6zvXHtenwIgF7m8Alb7DKcPfwVxAgpJd8msC1aFYc5y6pUbxgp4/44=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB6ARKcvc5169nWC5RE4zz4FSx1ZpWbeE7kMEI6xcj0sAiBTRyHNanP/hpQlTy8nz9/+dbnVdCwT4n9hlVnUQtqSHA=="}],"unpackedSize":20768,"size":7393},"name":"community-cordova-plugin-file-chooser","types":"./types/index.d.ts","cordova":{"id":"community-cordova-plugin-file-chooser","platforms":["android","ios"]},"funding":"https://github.com/sponsors/EYALIN","gitHead":"12591c8b050e98a24d1455628c2678343ccffda6","license":"MIT","version":"1.0.7","_npmUser":{"name":"anonymous","email":"yalin.eliad@gmail.com"},"homepage":"https://github.com/EYALIN/community-cordova-plugin-file-chooser/tree/master","repository":{"url":"EYALIN/community-cordova-plugin-file-chooser/tree/master","type":"git"},"_npmVersion":"11.4.2","description":"A plugin for file chooser","directories":{},"maintainers":[{"name":"anonymous","email":"yalin.eliad@gmail.com"}],"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/community-cordova-plugin-file-chooser_1.0.7_1790803655439_0.7375543852860815"},"_cnpmcore_publish_time":"2026-09-30T21:27:35.536Z","publish_time":1790803655536,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.7"},"name":"community-cordova-plugin-file-chooser","time":{"created":"2024-10-22T07:12:31.377Z","modified":"2026-09-30T21:27:51.656Z","1.0.0":"2024-10-22T06:37:11.956Z","1.0.1":"2024-10-22T18:30:21.149Z","1.0.2":"2024-10-22T19:03:42.425Z","1.0.3":"2024-10-22T19:17:18.471Z","1.0.4":"2025-05-01T12:28:43.469Z","1.0.5":"2026-02-01T19:24:56.345Z","1.0.6":"2026-09-27T06:21:46.287Z","1.0.7":"2026-09-30T21:27:35.536Z"},"readme":"I dedicate a considerable amount of my free time to developing and maintaining many Cordova plugins for the community ([See the list with all my maintained plugins][community_plugins]).\nTo help ensure this plugin is kept updated, new features are added, and bugfixes are implemented quickly, please donate a couple of dollars (or a little more if you can stretch) as this will help me to afford to dedicate time to its maintenance.\nPlease consider donating if you're using this plugin in an app that makes you money, or if you're asking for new features or priority bug fixes. Thank you!\n\n[![](https://img.shields.io/static/v1?label=Sponsor%20Me&style=for-the-badge&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/eyalin)\n\n[community_plugins]: https://github.com/EYALIN?tab=repositories&q=community&type=&language=&sort=\n\n# FileChooserPlugin\n\n`FileChooserPlugin` is a Cordova plugin that lets users pick one or more files on Android and iOS\n(via `ACTION_GET_CONTENT` / `UIDocumentPickerViewController`), returning each file's name,\nextension, size and — optionally — its content as a base64 string.\n\n## Installation\n\nTo install the plugin, use the following command:\n\n```sh\ncordova plugin add community-cordova-plugin-file-chooser\n```\n\n## Methods\n\n### `chooseFile(options?: FileChooserOptions): Promise<FileChooserResponse[]>`\n\nPresents the user with a file chooser to pick one or more files, and resolves with an array —\nalways one entry per picked file, even when `multiple` is not set.\n\n#### Options (`FileChooserOptions`)\n\n- `mimeType` (optional, `string`): filters which files can be picked. Defaults to all files.\n  - **Android**: an Android MIME type / glob passed straight to the picker's `Intent.setType()`\n    (e.g. `'image/*'`, `'application/pdf'`, or `'*/*'` for everything).\n  - **iOS**: a **UTI** (Uniform Type Identifier), not a MIME type, passed to\n    `UIDocumentPickerViewController`'s document types (e.g. `'public.image'`, `'com.adobe.pdf'`,\n    or `'public.data'` for everything — the default when `mimeType` is omitted). Passing an\n    Android-style MIME type such as `'image/*'` on iOS will not match anything.\n- `includeBase64` (optional, `boolean`, default `false`): also read the file's full content and\n  return it as a base64 string on `base64`. Leave this off when you only need metadata — it avoids\n  reading the file into memory.\n- `multiple` (optional, `boolean`, default `false`): allow picking more than one file in a single\n  chooser session.\n\n#### Response (`FileChooserResponse`, one per picked file)\n\n- `fileName` (`string`): the display name (from the system's `OpenableColumns.DISPLAY_NAME` on\n  Android, or the picked file's last path component on iOS), falling back to the trailing segment\n  of the file's URI when the system can't supply a name.\n- `path` (`string`): the file's URI (Android, `content://…`) or filesystem path (iOS).\n- `extension` (`string`): the file extension without the leading dot (e.g. `'db'`), derived from\n  `fileName`.\n- `fileSize` (`number`): size in bytes (from `OpenableColumns.SIZE` on Android, falling back to the\n  content resolver's `AssetFileDescriptor` length; from `NSData.length` on iOS).\n- `base64` (`string`, only when `includeBase64: true`): the file's full content, base64-encoded.\n\n#### Example\n\n```javascript\nFileChooserPlugin.chooseFile({ includeBase64: true, mimeType: 'application/pdf' })\n  .then(files => {\n    console.log('Picked file:', files[0].fileName, files[0].fileSize);\n  })\n  .catch(error => {\n    console.error('Error choosing file:', error);\n  });\n```\n\n`FileChooserPlugin` is a Cordova global (`window.FileChooserPlugin`), not an ES module export —\nthere is no `import { chooseFile } from 'community-cordova-plugin-file-chooser'`. TypeScript\nconsumers can still get typed access via the shipped `types/index.d.ts`:\n\n```typescript\nimport FileChooserManager, { FileChooserOptions, FileChooserResponse } from 'community-cordova-plugin-file-chooser';\n\ndeclare const FileChooserPlugin: FileChooserManager;\n```\n\n## Platform Support\n\n- **Android**\n- **iOS**\n\n## Errors\n\nThe returned promise rejects (with a plain string message) when:\n- the user cancels the picker,\n- the picker returns without a result the plugin can read (e.g. the app process was killed while\n  the picker was open and there's no pending callback to answer),\n- or, with `includeBase64: true`, the file couldn't be read (including a 0-byte read, which is\n  treated as a failure rather than an empty file).\n\n## Contributing\n\nContributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","users":{}}