Fix receiving files in Firefox.

Unfortunately, sending files doesn't work properly after all.
Size of the file is correct, but contents differ - most likely
because chunks are not sent in order.