Skip to content

Android feature: multiple files upload in one shot via multipart, issue #240#266

Open
varunon9 wants to merge 1 commit intoVydia:masterfrom
varunon9:master
Open

Android feature: multiple files upload in one shot via multipart, issue #240#266
varunon9 wants to merge 1 commit intoVydia:masterfrom
varunon9:master

Conversation

@varunon9
Copy link

Summary

Android only support for uploading multiple files in one go
Issue: #240

Test Plan

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

const onChooseImagesPress = () => {
  launchImageLibrary({
    selectionLimit: 20
  }, ({assets}) => {
    const uploadConfig = {
      url: 'https://httpbin.org/post',
      //type: 'multipart',
      method: 'POST',
      notification: {
        enabled: true
      },
      useUtf8Charset: true
    };
    startUpload({
      ...uploadConfig,
      files: assets.map(asset => ({
        path: asset.uri.substr(7),
        field: asset.fileName
      }))
    })
  });
};

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on an emulator
  • I added the documentation in README.md
  • I updated the typed files (TS only)
  • I've added Detox End-to-End Test(s)
  • I've created a snack to demonstrate the changes: LINK HERE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant