Read a zip inside another zip in Javascript

0

I have a zip file called A.zip, this file has inside more zip files called A_001.zip, A_002.zip .... And inside each of these zip there are several .txt files that I want to read and put in different arrays

What happens is that I have no idea how to make When selecting the A.zip file on my website, I do all the process described above, I do not know if I have to use the server band "Server side" or the client band "Client side" ...

    
asked by david.t_92 09.12.2016 в 15:21
source

1 answer

1

You should use zip.js , and once you get the list of files contained in the first < em> ZIP , you evaluate them again, one by one, to apply the prop again if appropriate. Otherwise, you do what you need with the .txt files, that is, send them to an array.

By being programmed in JavaScript , it would be running on the client side, and therefore you should be very careful with the consumption of user memory resources, I suggest you limit the size of the files.

    
answered by 09.12.2016 / 19:57
source