Search code examples
htmlzipfileapi

Zipping files and HTML5 File API


Is it possible to bundle files into a zip file using the File API, or another part of the HTML5 suite? If so, are there any example implementations available? If not, is this something likely to be supported by modern browsers in the next year or two?


Solution

  • While I don't know of anything built into HTML5 currently, I've seen some projects that are starting to touch on this in JavaScript. You may want to take a look at this project, which allows you to read the contents of a zip file, and if it's compressed using the Deflate algorithm, can unzip them.