How to get study archive size before downloading?

hello.
http://localhost:8042/studies/ID/archive
doesn’t return content-length. Is there any way to get archive size?

Hi,

The default /archive implementation generated and streams the zip on the fly and therefore, it does not know the size when it starts streaming the HTTP response.

However, if you generate the zip asynchronously, you’ll get the Content-Length but you’ll have to wait before downloading the content.

HTH,

Alain