Copy link to clipboard
Copied
Hello, guys!
I am trying to use ZIP JavaScript library (https://github.com/Stuk/jszip/blob/master/dist/jszip.js).
zip = new JSZip();
zip.file("hello.txt", "Hello, World!").file("tempfile", "nothing");
zip.folder("images").file("smile.gif", base64Data, {base64: true});
zip.file("Xmas.txt", "Ho ho ho !", {date : new Date("December 25, 2007 00:00:01")});
zip.remove("tempfile");
base64zip = zip.generate();
When I run default sample, provided by authors of this library, the Extension Script Editor highlights the first line of my example with an error: JSZip does not have a constructor. Although the JSZip constructor is defined (line 282), the Extension Script does not see it.
Can anybody tell what is wrong with this code for the JSX parser? Is there other useful libraries which to read content of zip files with JavaScript? Backup way is to use console commands, but it is very ugly method))
Have something to add?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more