All Projects → moberwasserlechner → capacitor-filesharer

moberwasserlechner / capacitor-filesharer

Licence: MIT license
Capacitor plugin to download and share files for the Web, Android and iOS! Stop the war in Ukraine!

Programming Languages

java
68154 projects - #9 most used programming language
typescript
32286 projects
swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to capacitor-filesharer

capacitor-firebase-authentication
⚡️ Capacitor plugin for Firebase Authentication.
Stars: ✭ 67 (+21.82%)
Mutual labels:  capacitor, capacitor-plugin
appcenter-sdk-capacitor
Capacitor Plugin for Microsoft's Visual Studio App Center SDK.
Stars: ✭ 22 (-60%)
Mutual labels:  capacitor, capacitor-plugin
keep-awake
⚡️ Capacitor plugin to prevent devices from dimming or locking the screen.
Stars: ✭ 69 (+25.45%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-android-dark-mode-support
⚡️ Capacitor plugin to support dark mode on Android.
Stars: ✭ 23 (-58.18%)
Mutual labels:  capacitor, capacitor-plugin
XREngine
Immersive infrastructure for everyone. Everything you need to build and deploy scalable realtime 3D social apps and more. 🤖 🚀 👓 🚀 🕹️ 🚀 🧑🏿‍🚀
Stars: ✭ 423 (+669.09%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-vue-ionicv4-app
sample app using capacitor vuejs and ionicv4 components
Stars: ✭ 70 (+27.27%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-site
Capacitor website
Stars: ✭ 0 (-100%)
Mutual labels:  capacitor, capacitor-plugin
app-icon
Capacitor plugin for managing an app's icon. The main feature being that you can programmatically change the app icon.
Stars: ✭ 28 (-49.09%)
Mutual labels:  capacitor, capacitor-plugin
text-to-speech
⚡️ Capacitor plugin for synthesizing speech from text.
Stars: ✭ 50 (-9.09%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-branch-deep-links
Capacitor plugin for branch.io deep links
Stars: ✭ 22 (-60%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-background-task
⚡️ Capacitor plugin for running background tasks.
Stars: ✭ 27 (-50.91%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-rate-app
Let users rate your app using native review app dialog for both Android and iOS.
Stars: ✭ 88 (+60%)
Mutual labels:  capacitor, capacitor-plugin
react-magic-dropzone
✨Magically drag and drop files/links for uploading
Stars: ✭ 11 (-80%)
Mutual labels:  files
Com2Kube
Web application that convert docker-compose files to kubernetes files
Stars: ✭ 26 (-52.73%)
Mutual labels:  files
hent
A small utility to fetch remote files into buffers
Stars: ✭ 23 (-58.18%)
Mutual labels:  files
mirotalk
🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
Stars: ✭ 1,593 (+2796.36%)
Mutual labels:  sharing
PHP-FileUpload
Simple and convenient file uploads — secure by default
Stars: ✭ 53 (-3.64%)
Mutual labels:  files
filehost-server
A CDN server for hosting all types of files/folders.
Stars: ✭ 15 (-72.73%)
Mutual labels:  files
cache
Aplus Framework Cache Library
Stars: ✭ 18 (-67.27%)
Mutual labels:  files
ansible-backup
Ansible daily backup role
Stars: ✭ 25 (-54.55%)
Mutual labels:  files

Capacitor File Sharing plugin

Installation

For Capacitor v4

npm i @byteowls/capacitor-filesharer
npx cap sync

For Capacitor v3 use 3.0.0

npm i @byteowls/[email protected]
npx cap sync

For Capacitor v2 use 2.0.0

npm i @byteowls/[email protected]
npx cap sync

For further details on what has changed see the CHANGELOG.

Versions

Plugin For Capacitor Docs Notes
4.x 4.x.x README Breaking changes see Changelog.
3.x 3.x.x README Breaking changes see Changelog. XCode 12.0 needs this version
2.x 2.x.x README Breaking changes see Changelog. XCode 11.4 needs this version
1.x 1.x.x README

Maintainers

Maintainer GitHub Social
Michael Oberwasserlechner moberwasserlechner

Actively maintained: YES

Configuration

Starting with version 3.0.0, the plugin is registered automatically on all platforms.

Use it

import {
  FileSharer
} from '@byteowls/capacitor-filesharer';

@Component({
  template: '<button (click)="downloadButtonClick()">Download file</button>'
})
export class SignupComponent {
    downloadButtonClick() {
        FileSharer.share({
            filename: "test.pdf",
            contentType: "application/pdf",
            // If you want to save base64:
            base64Data: "...",
            // If you want to save a file from a path:
            path: "../../file.pdf",
        }).then(() => {
            // do sth
        }).catch(error => {
            console.error("File sharing failed", error.message);
        });
    }
}

Error Codes

  • ERR_PARAM_NO_FILENAME ... Filename missing or invalid.
  • ERR_PARAM_NO_DATA ... Base64 data missing.
  • ERR_PARAM_NO_CONTENT_TYPE ... Content type missing
  • ERR_PARAM_DATA_INVALID ... Base64 data is invalid. See this comment for a possible error.
  • ERR_FILE_CACHING_FAILED ... Caching the file in temp directory on the device failed.

Platform: Web/PWA

Register plugin

On Web/PWA the plugin is registered automatically by Capacitor.

Platform: Android

Prerequisite: Capacitor Android Docs

Register plugin

On Android the plugin is registered automatically by Capacitor.

Platform: iOS

Prerequisite: Capacitor iOS Docs

Register plugin

On iOS the plugin is registered automatically by Capacitor.

Platform: Electron

  • No timeline.

Contribute

See Contribution Guidelines.

Changelog

See CHANGELOG.

License

MIT. Please see LICENSE.

BYTEOWLS Software & Consulting

This plugin is powered by BYTEOWLS Software & Consulting.

If you need extended support for this project like critical changes or releases ahead of schedule. Feel free to contact us for a consulting offer.

Disclaimer

We have no business relation to Ionic.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].