Skip to content

Phonegap code and example libraries for integration with Filepicker.io

Notifications You must be signed in to change notification settings

Web5design/filepicker-phonegap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filepicker.io Phonegap samples and library

####Setting up your project Along with the standard Cordova 2.0 base platform, Filepicker.io also requires the ChildBrowser plugin:

Follow the instructions there to install ChildBrowser. Once ChildBrowser is properly installed, you should be all ready to start!

Just like on the web, copy the Filepicker.io javascript library into your project, include the script tag below, and you'll be all set!

<script src="filepicker-0.0.1.js"></script>

Then, you can use all the same calls as with the Javascript API!

Be sure to set your api key via the filepicker.setKey("MyAPIKey") call

####Hello World Once you are set up, getting a file from filepicker.io is as easy as putting an input type in your html:

<input type="filepicker"/>

or calling the library directly:

filepicker.getFile("image/*", function(url, metadata){
    alert("You picked: "+url);
});

There's so much more, including saving files and image conversion!

If you have any questions, don't hesitate to reach out to support@filepicker.io

Note that drag-drop functionality is not supported in PhoneGap as mobile phones don't have the required functionality.

Filepicker.io also supports Javascript, iOS, and Android, and more libraries are being added every week!


About

Phonegap code and example libraries for integration with Filepicker.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published