Hi, you are downloading the zip on the server, in your localhost “works” because your local machine is the server.
I got the same issue as you a few days ago about downloading a zip on the client, check this post: Downloading multiple attachments
Focus on:
Hope it helps.