Questions tagged [zip.js]

A JavaScript library to zip and unzip files

A JavaScript library to zip and unzip files.

Compatibility

This library works fully with Chrome, Firefox, Safari 6 and Internet Explorer 10.

With Safari 5 and IE9, you must disable Web Workers and use a Typed Array polyfill.

Documentation

Core API: http://gildas-lormeau.github.io/zip.js/core-api.html

Filesystem API: http://gildas-lormeau.github.io/zip.js/fs-api.html

Project site: http://gildas-lormeau.github.io/zip.js/

25 questions
10
votes
1 answer

HTML5 ondrop event returns before zip.js can finish operations

The crux of my issue is that I need to use a datatransferitemlist asynchronously which is at odds with the functionality described in the specs, which is that you are locked out of the dataTransfer.items collection once the event…
moggers
  • 503
  • 4
  • 8
8
votes
1 answer

using zip.js to read a zip file via xmlhttp/ajax call on Node.js

I am trying to : Send a zip file via xmlhttp to the client then read the file using zip.js and render its contents I successfully receive the binary of the file i.e. the success callback is called but I get and error when I try to do getEntries. …
Rishul Matta
  • 3,383
  • 5
  • 23
  • 29
5
votes
1 answer

extract password protected zip file using javascript (client side)

There are many excellent libraries to open zip files on the client as: zip.js, jszip etc ... But I could not find any library that can open an encrypted zip file. is there a solution to open a zip file on the client side (in the browser)?
maori danii
  • 59
  • 1
  • 4
4
votes
2 answers

How can I uncompress a gzip file in javascript?

I have gotten an ArrayBuffer data (called s as follows which consist of many blocks) from our serve side,the blob is generated as follows: var blob=new Blob([s.slice(4,82838)]); but the blob I have made is a gzip data;How can I uncompress it in…
feixiangsnail
  • 45
  • 1
  • 1
  • 6
3
votes
0 answers

How do I unpackage zip file containing multiple files and push those files to my dropzone uploader

I'm trying to unzip a file, and send the uncompressed files that were inside back into dropzone uploader I have a multi file uploader using Dropzone.js. This works amazingly well for multiple files, however I'm trying to get it to extract(unzip) a…
joe
  • 103
  • 6
3
votes
1 answer

Uncompress a file with JavaScript

I need to load a json file into a Javascript container. On the user's browser, the json file is loaded into the Javascript library which processes the data. However, this file is getting quite large (10MB) but if I compress it I can get it down to…
Kritz
  • 7,099
  • 12
  • 43
  • 73
3
votes
1 answer

zip.js to read file name inside zip . (Client side scripting only)

have multiple file inputs in form now I have to check for each file input that zip file doesn't contain any invalid files (doc, docx and pdf only allow). I wrote