Fix sending files in Firefox.

Instead of converting individual chunk blobs to array buffers (async),
we convert the whole block and then slice it into chunks (sync).
This ensures that chunks are sent in order in Firefox.