I want to upload some NSData to a server, I want to do so using the multipart approach. There are several questions on stack about this, but, I want to be able to handle large files on iOS, so fully loading the asset in memory is not always an option, I would like to know if I can stream the file from disk, into a multipart request.
This: File Upload to HTTP server in iphone programming
is one of the many questions I found, but as you can see they load the data in memory and then stick it into the request at once:
[postbody appendData:[NSData dataWithData:YOUR_NSDATA_HERE]];
Any idea?