How to Zip files using JavaScript?

后端 未结 6 1446
不知归路
不知归路 2020-12-09 08:29

Is there a way to zip files using JavaScript?? For an example, like in Yahoo mail, when you chose to download all the attachments from an email, it gets zipped and downloade

6条回答
  •  时光说笑
    2020-12-09 09:14

    With the new HTML5 file APIs and the typed arrays, you can pretty much do anything you want in JavaScript. However, the browser support isn't going to be great. I'm guessing that's what you meant by "unresolved issues". I would recommend, for the time being, to do it on the server. For example, in PHP, you could use this extension.

提交回复
热议问题