From e35ca71bca6231138eadbc281177a8ff7948c071 Mon Sep 17 00:00:00 2001 From: trashcoder Date: Tue, 27 Jun 2023 09:10:13 -0700 Subject: [PATCH] Trashcoder/blob slice content type (#38078) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: I added the contentType parameter to Blob.slice like it's in the MDN Web docs. This PR fixes https://github.com/facebook/react-native/issues/38058 When i slice a Blob for chunked uploads with react native i lost the content type, e.g. "image/jpeg", so the server doesn't know what kind of file he gets. In the docs of MDN the slice method was described with a third contentType parameter which was missing in Metas implementation. ## Changelog: [GENERAL] [ADDED] added a third parameter "contentType" to method slice of class Blob.