Dowling1dow Dowling1dow - 1 year ago 80
Javascript Question

Editing a file within a zipped file using JSZip

Using JSZip, is there a way to edit a file within a zipped file?

I've tried looking for solutions and going through the API but I can't seem to find a solution.

Any help with this would be great! Thanks in advance!

Answer Source

You can edit a file inside your zip with .file method.

zip.file("existing_filename", "new file content");

This method is used for adding and updating file content.

Just make sure the file already exist.

You can read more about it in the documentation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download