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

Extend multipart upload feature with support for multipart/related requests #138

Open
9 tasks
edeckers opened this issue Mar 21, 2021 · 0 comments
Open
9 tasks
Labels
Android enhancement New feature or request iOS
Projects

Comments

@edeckers
Copy link
Owner

Some background: #135

Currently react-native-blob-courier supports multipart/form-data file uploads only, it should support multipart/related as well.

Proposed solution

  • Add a multipartType: "form-data" | "related" field to BlobMultipartMapUploadRequest
  • Add a Content-ID field to each part of the request. The value of the Content-ID-field will be the name of the key of the part in the parts dictionary of the upload request, so contents of separate parts can refer to each other through cid's.
  • Add inline: boolean = false field to BlobMultipartFormData

Progress

  • Add multipartType to BlobMultipartMapUploadRequest
  • Add inline field to BlobMultiPartFormData
  • Add Content-ID field to each part of the request in Android code base
  • Add Content-ID field to each part of the request in iOS code base
  • Process inline field in Android code base
  • Process inline field in iOS code base
  • Add TypeScript tests
  • Add Android tests
  • Add iOS tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android enhancement New feature or request iOS
Projects
Planned
  
Backlog
Development

No branches or pull requests

1 participant