@capgo/capacitor-uploader 8.3.19 → 8.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,14 +1,29 @@
1
1
  # @capgo/capacitor-uploader
2
- Upload files in the background with progress tracking, resumable uploads, and network-aware handling for Capacitor apps.
3
2
 
3
+ Upload files from your Capacitor app with native background uploads that keep going when the app is closed, with progress events and retries.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_uploader"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-uploader" alt="Capgo - Instant updates for Capacitor" /></a>
4
6
 
5
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-uploader" alt="Capgo - Instant updates for Capacitor" /></a>
6
-
7
7
  <div align="center">
8
- <h2><a href="https://capgo.app/?ref=plugin_uploader"> ➡️ Get Instant updates for your App with Capgo</a></h2>
9
- <h2><a href="https://capgo.app/consulting/?ref=plugin_uploader"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_uploader">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_uploader">Missing a feature? We'll build the plugin for you 💪</a></p>
10
12
  </div>
11
13
 
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-uploader/main/assets/github-social-preview.png" alt="@capgo/capacitor-uploader for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Uploads**: `startUpload()` sends a file with `PUT` or `POST`, custom headers and parameters.
21
+ - **Multipart**: `uploadMultipart()` sends a file as `multipart/form-data`.
22
+ - **Progress events**: the `events` listener reports progress, completion and errors.
23
+ - **Control**: `removeUpload()` cancels an upload, `maxRetries` retries failures.
24
+ - **Background**: a background `URLSession` on iOS and an upload service with a notification on Android.
25
+ - **Platforms**: iOS, Android and Web. Web uploads with `fetch()` while the page is open, without native background uploads.
26
+
12
27
  ## Uploader Plugin
13
28
 
14
29
  This plugin provides a flexible way to upload natively files to various servers, including S3 with presigned URLs.
@@ -38,7 +38,7 @@ public class UploaderPlugin extends Plugin {
38
38
 
39
39
  private static final String CAPACITOR_CONTENT_PATH_PREFIX = "/_capacitor_content_";
40
40
 
41
- private final String pluginVersion = "8.3.19";
41
+ private final String pluginVersion = "8.3.21";
42
42
 
43
43
  private Uploader implementation;
44
44
 
@@ -3,7 +3,7 @@ import Capacitor
3
3
 
4
4
  @objc(UploaderPlugin)
5
5
  public class UploaderPlugin: CAPPlugin, CAPBridgedPlugin {
6
- private let pluginVersion: String = "8.3.19"
6
+ private let pluginVersion: String = "8.3.21"
7
7
  public let identifier = "UploaderPlugin"
8
8
  public let jsName = "Uploader"
9
9
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-uploader",
3
- "version": "8.3.19",
3
+ "version": "8.3.21",
4
4
  "description": "Upload file natively",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",