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')
forked from areo/capacitor-plugin-file-transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Capacitor plugin for downloading files
License
barrcodes/capacitor-plugin-file-transfer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Capacitor plugin for downloading files
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 35.3%
- Swift 30.0%
- Ruby 17.2%
- Objective-C 12.8%
- TypeScript 4.7%