9. Select the “Test.zip” file in the file uploader. A list of files contained in the ZIP file will appear. Click on one of the contained files to display its contents as text.
- There’s no real error handling in this program, so if you attempt to load a file that’s not a ZIP file, or if you attempt to view the contents of a non-text file as text, you’ll encounter errors.
- As I said earlier, when I tried to open the ZIP file that the JSZip library actually came packaged in, it threw an error saying that the file was invalid. But I guess it’s pretty probable that I’m not using it quite right.