I know I CAN do it, but the question is should I?
I have a class that streams files I give it into a zip file to download. Now, the zip file is being streamed to the browser as it is being created, so there is no way to know the exact file size.
The files going into the zip are all images, so the exact size will be close to all the image sizes added up.
My question is this. If I calculate an approximation and send that as the file size header, does this mess anything up? It’d be nice to have an idea of how much longer the file will take to download.
Thanks, and if anything is unclear, don’t hesitate to ask questions!