👉🏼 Note: this Plugin is developed for Capacitor V3
This Plugin it used to select Files from the Device. Information about supported Extensions can be found here:
- iOS: https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
- Android: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
This and other Open-Source Cordova Plugins are developed in my free time. To 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. Please consider donating if you're using this plugin in an app that makes you money, if you're being paid to make the app, if you're asking for new features or priority bug fixes.
npm install capacitor-file-select
npx cap sync
The full Changelog is available here
select(options: FileSelectOptions) => any
Opens the File Selector
Param | Type |
---|---|
options |
FileSelectOptions |
Returns: any
Prop | Type | Description |
---|---|---|
multiple |
boolean |
Select multiple Files |
extensions |
{} |
Extensions to select |
Prop | Type | Description |
---|---|---|
path |
boolean |
File Path |
name |
string |
File Name |
extension |
string |
File Extensions |