0.0.5 • Published 5 years ago

@moonncat/base64tofile v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago