Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cordova file chooser plugin. with multiple file support.

License

NotificationsYou must be signed in to change notification settings

hc-oss/cordova-plugin-simple-file-chooser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This plugin is an forked version of cordova plugin chooser that provides multiple file selection functionality and removes base64 functionality as we can use ionic native file plugin to get file directly

Installing

cordova plugin add cordova-plugin-simple-file-chooser

Supported Platforms:

  • Android
  • iOS

API

/**  * Displays native prompt for user to select one or more files.  *  *@param accept Optional MIME type filter (e.g. 'image/gif,video/*').  *  *@returns Promise containing selected files' information,  * MIME type, display name, and original URI.  *  * If user cancels, promise will be resolved as undefined.  * If error occurs, promise will be rejected.  */chooser.getFiles(accept?:string) :Promise<undefined|{mediaType:string;name:string;uri:string;}>

Example Usage

(async()=>{constfile=awaitchooser.getFile();console.log(file);})();

Note

If calling in typescript don't use types instead use direct javascript bydeclare var chooser on your ts file.

About

Cordova file chooser plugin. with multiple file support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp