How to get the file using it's URL in Javascript?

Using JavaScript on a ZIP file selected using a HTML file selector; how can I get a list of all its file entries?

  • What are the best libraries? Code snippets? Loading the entire ZIP files is undesireable as they can be quite big (potentially several GB). A good way of determining the content type of each file entry would be very useful as well, although I'll settle on using file extensions if that's all I'll get.

  • Answer:

    In the browser? I did a Google search for "JavaScript zip" and http://jszip.stuartk.co.uk/ was the top result - have you already tried JSZip?

Jamie Mason at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.