Closed JustAnotherArchivist closed 4 years ago
Yeah, this would be a very useful feature.
IA-S3 does not currently support streaming uploads, and there aren't any plans to as far as I know. I'm going to close the issue, but happy to revisit it if server-side support ever comes. If you have more questions about server-side support, please email info@archive.org. Thanks!
It would be great if
ia upload
supported streaming uploads, e.g. reading from stdin or a FIFO, without using temporary files:See #77 and #173 for example use cases. A further idea is directly piping megawarc output to IA instead of writing it to disk and then re-reading it (multiple times), massively reducing disk I/O.
An implementation would, as far as I can tell, require server-side support on IA S3 for chunked transfer encoding and trailers. The former is needed to avoid having to know the size in advance, the latter for
--verify
and--delete
by computing the MD5 hash during the upload and sending theContent-MD5
header at the end.