Creates a Blob from file content with the given MIME type.
Node.js Buffers are Uint8Array subclasses that may share a pooled
ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
such a Buffer directly to new Blob([buf]) can include the entire
underlying pool on some runtimes, producing a Blob with extra bytes
that corrupts multipart uploads.
Copying into a standalone Uint8Array ensures the Blob receives only the
intended bytes regardless of runtime behaviour.
Creates a Blob from file content with the given MIME type.
Node.js Buffers are Uint8Array subclasses that may share a pooled ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing such a Buffer directly to
new Blob([buf])can include the entire underlying pool on some runtimes, producing a Blob with extra bytes that corrupts multipart uploads.Copying into a standalone Uint8Array ensures the Blob receives only the intended bytes regardless of runtime behaviour.