Skip to content

Comment on Introduction to HTTP Multipart

Comments

Another advantage of multipart is that the server can stream each part separately. For example, say you're uploading 5 files by encoding them into a JSON object. Your server will have to buffer the entire JSON object into memory, decode it, and examine each file.

That's not true. You can stream JSON, too. You just have to do something fancier than JSON.stringify().

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.