Skip to content

Tri-body/cordova-plugin-simple-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-simple-downloader

a cordova plugin to simple download file, return file md5, only for android platfrom.

Install/UnInstall

install from github repository using this command

cordova plugin add https://github.com/Tri-body/cordova-plugin-simple-downloader

or install from npmjs package using this command

cordova plugin add cordova-plugin-simple-downloader

uninstall using this command

cordova plugin remove cordova-plugin-simple-downloader

How to Use

SimpleDownloader.download(
  'http://127.0.0.1:8080/xxx.mp4',
  '/storage/emulated/0/Android/data/<appid>/files/', // can't use file:///storage...
  'yyy.mp4',
  (md5) => {
    console.log('ok', md5);
  },
  e => {
    console.error('error: ', e);
  },
  true // if true, success callback return file md5, default false.
);

About

cordova plugin to simple http download file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published