The first installment of this article series discussed how to read a big chunk of data from the raw body of an HTTP POST method and save it to a database as a stream property of a class. The second installment discussed how to send files and their names wrapped in a JSON format.
Now let’s look closer at the idea of sending large files in parts to the server. There are several approaches we can use to do this. This article discusses using the Transfer-Encoding
header to indicate chunked transfer. The HTTP/1.1 specification introduced the Transfer-Encoding
header, and the RFC 7230 section 4.1 described it, but it’s absent from the HTTP/2 specification.