Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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