flyber-upload
v0.1.22
Published
Upload Files into Flyber
Downloads
7
Readme
Flyber Upload
Install
npm i flyber-upload
Usage (Simple)
var upload = require('flyber-upload');
var target = "[email protected]";
upload('./doodle.png', target, function(response){
console.log(response.url);
});
Usage (Advanced)
var upload = require('flyber-upload');
var fs = require("fs");
var target = {
permission: "PERMISSION_KEY",
subdomain: "SUBDOMAIN"
};
var file = fs.createReadStream('./doodle.png');
upload(file, target, function(response){
console.log(response.url);
});