Create .ZIP Files with JavaScript: JSZip
JavaScript today is capable of generating a lot of data. The easiest way to deliver multiple files to your users is in a Zip file.
Instead of wasting server resources and bandwidth you can get the browser client to do it for you and JSZip helps to create .Zip files with Javascript.
The biggest issue with JSZip is that the filenames are very awkward, Firefox generates filenames such as a5sZQRsx.zip.part, and Safari isn’t much better with just Unknown.
Sadly there is no pure Javascript solution to this. However Downloadify can be used to download files to a user’s computer with a filename that you can choose.
2 Responses
[...] This post was mentioned on Twitter by esarfraz and esarfraz. esarfraz said: http://greepit.com/2011/01/create-zip-files-with-javascript-jszip/ [...]
[...] Przeczytaj artykuł: Create .ZIP Files with JavaScript: JSZip | Greepit [...]