Giter Club home page Giter Club logo

filepicker-phonegap's Introduction

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 [email protected]

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!


filepicker-phonegap's People

Contributors

brettcvz avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.