Skip to content

barrcodes/capacitor-plugin-file-transfer

 
 

Repository files navigation

Capacitor Plugin for downloading files

import { Plugins } from '@capacitor/core'

const { FileTransfer } = Plugins

async function download(source: string, target: string): Promise<void> {
  await FileTransfer.download({ source, target })
  console.log('Download complete')
}

download('https://example.com/logo.png', 'file:///some/local/path/logo.png')

About

Capacitor plugin for downloading files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 35.3%
  • Swift 30.0%
  • Ruby 17.2%
  • Objective-C 12.8%
  • TypeScript 4.7%