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.
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
urias a parameter in FormData. In a similar manner maybe we can addblobas a parameter in the FormData value which gets converted to a filestream and then processed.