Streams for multipart upload
Submitted by Jim Nelson
Assigned to libsoup-maint@gnome.bugs
Link to original bug (#637845)
Description
When doing a multipart upload, the current implementation requires all the buffers be in memory before starting the transaction. In the case of uploading large files (i.e. video, audio, etc.), that can be onerous.
Dan Winship suggested using mmap I/O, which is a fair solution, but a more thorough solution would be to allow streaming each section of the multipart payload. This could be done many ways, but the way I'm envisioning is to pass a GInputStream rather than a SoupBuffer, that way the source of data could be just about anything.