@moonncat/base64tofile
v0.0.5
Published
get file from base64 string, upload multiple files
Downloads
26
Maintainers
Readme
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(){}});
**