ionic-team / ionic-team/capacitor-file-transfer

feat: Support Multiple Files in a Single Multipart Upload

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11
Forks
10
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

### Plugin

[@capacitor/file-transfer](https://capacitorjs.com/docs/apis/file-transfer)

### Description

The startUpload function currently only accepts one file path at a time. This means that to upload files to one endpoint I have to send multiple separate requests. However, many real world backends expect a single multipart/form-data request with multiple file parts (e.g. images[0], images[1]) and have atomic logic tied to receiving them together

Can we add support for this? Both Android and iOS have built-in APIs for handling requests, with multiple file parts. So I think it should be possible to implement this feature

### Platform(s)

Android, iOS, Web

### Preferred Solution

### Alternatives

### Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.