Skip to content

uploading blobs as files #343

@heroic

Description

@heroic

Introduction

React Native does not allow uploading a blob as a multipart request.

Details

React Native fetch blob was the de facto standard for uploading files up until recently, when RN added that support natively. However, even now, it's not possible that a blob received as a fetch response to be uploaded, without having to convert the blob to base64uri.

Discussion points

This should be easily fixable by adding another "source" of multipart requests in the network utility. It currently supports resolving a file from a path, with uri as a parameter in FormData. In a similar manner maybe we can add blob as a parameter in the FormData value which gets converted to a filestream and then processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions