0.0.5 • Published 6 years ago

@moonncat/base64tofile v0.0.5

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

base64tofile

get file from base64 string, or upload multiple files to specific service

Install

$ npm install --save base64tofile 

Usage

var file=File();

file.download('dGVzdA==');

//<input id="inputID" type="file"/>
file.upload('./upload/','inputID');
file.upload('./upload/','inputID',{'headers':{'Authorization':'Bearer token'}});
file.upload('./upload/','inputID',{'headers':{'Authorization':'Bearer token'},success:function(){},fail:function(){}});
File.download('dGVzdA==');
//<input id="inputID" type="file"/>
File.upload('./upload/','inputID');
File.upload('./upload/','inputID',{'headers':{'Authorization':'Bearer token'}});
File.upload('./upload/','inputID',{'headers':{'Authorization':'Bearer token'},success:function(){},fail:function(){}});

**

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago