filepicker.js
A Node.js Filepicker Library, with streaming
Installation
$ npm install filepicker.js
Instantiation
var Filepicker = require('filepicker.js');
var filepicker = new Filepicker('YOUR_API_KEY');
Methods
-
store
- Stores a file into filepicker and passes the url in the response
filepicker.store("test", {persist:true}, function(err, url) { console.log(url); });
-
read
- Reads a file from filepicker and passes the contents in the callback
- For now uses utf8
filepicker.read(url, {}, function(err,data){ console.log(data); });
- Reads a file from filepicker and passes the contents in the callback
-
stream
- see examples/stream.coffe
- see examples/stream.js