Capacitor plugin to pick files
npm install @whiteguru/capacitor-plugin-file-picker
npx cap syncnpm install @whiteguru/capacitor-plugin-file-picker@^5.0.1
npx cap syncnpm install @whiteguru/capacitor-plugin-file-picker@^4.0.1
npx cap syncnpm install @whiteguru/[email protected]
npx cap syncpick(options: FilePickerOptions) => Promise<FilePickerResults>| Param | Type |
|---|---|
options |
FilePickerOptions |
Returns: Promise<FilePickerResults>
pickImages(options?: FilePickerCommonOptions | undefined) => Promise<FilePickerResults>| Param | Type |
|---|---|
options |
FilePickerCommonOptions |
Returns: Promise<FilePickerResults>
pickVideos(options?: FilePickerCommonOptions | undefined) => Promise<FilePickerResults>| Param | Type |
|---|---|
options |
FilePickerCommonOptions |
Returns: Promise<FilePickerResults>
pickFiles(options?: FilePickerCommonOptions | undefined) => Promise<FilePickerResults>| Param | Type |
|---|---|
options |
FilePickerCommonOptions |
Returns: Promise<FilePickerResults>
| Prop | Type |
|---|---|
files |
FilePickerResult[] |
| Prop | Type | Description |
|---|---|---|
path |
string |
File Path |
webPath |
string |
webPath returns a path that can be used to set the src attribute of an image for efficient loading and rendering. |
name |
string |
File Name |
extension |
string |
File Extensions |
| Prop | Type |
|---|---|
mimes |
string[] |
| Prop | Type | Description | Default |
|---|---|---|---|
multiple |
boolean |
Select multiple Files | false |
limit |
number |
Maximum number of files to select |