1.0.5 • Published 6 years ago

cordova-plugin-custom-filechooser v1.0.5

Weekly downloads
9
License
ISC
Repository
github
Last release
6 years ago

cordova custom filechooser

plugin para poder seleccionar archivos desde android, personalizando que tipo de archivo vas a buscar.

Requiere Cordova >= 2.8.0

Instalar con Cordova CLI

$ cordova plugin add https://github.com/EnriqueGL/cordova-custom-filechooser.git

API

customFileChooser.open(type ,successCallback, failureCallback); 

type: string

customFileChooser.open('application/pdf, image/png',function (uri){ console.log(uri) }, function(err){ console.log(err); });

Types:

image/jpeg
audio/mpeg4-generic
text/html
audio/mpeg
audio/aac
audio/wav
audio/ogg
audio/midi
audio/x-ms-wma
video/mp4
video/x-msvideo
video/x-ms-wmv
image/png
image/jpeg
image/gif
.xml ->text/xml
.txt -> text/plain
.cfg -> text/plain
.csv -> text/plain
.conf -> text/plain
.rc -> text/plain
.htm -> text/html
.html -> text/html
.pdf -> application/pdf
.apk -> application/vnd.android.package-archive

Donacion

paypal