You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #343 on June 10, 2021 08:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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 addblob
as a parameter in the FormData value which gets converted to a filestream and then processed.Beta Was this translation helpful? Give feedback.
All reactions